Skip to content

[CLEANUP] Rename and optimize CLI options #19

@djdarcy

Description

@djdarcy

Summary

Several CLI options have misleading names or non-standard conventions that should be cleaned up for better usability.

Proposed Changes

Rename --secure (misleading name)

Currently --secure just changes chunk size from 4KB to 1MB - no actual security benefit:

const std::streamsize CHUNK_SIZE_SECURE = 1024 * 1024;  // 1 MB
const std::streamsize CHUNK_SIZE_FAST = 4096;           // 4 KB

Options:

  • Rename to --large-chunks or --buffer 1M
  • Add configurable --chunk-size <bytes>
  • Remove entirely (performance difference is negligible on modern systems)

Rename --dry-run to --dryrun

Simpler to type, no hyphen. Keep --dry-run as alias for backward compatibility.

Standardize -vb to -v

The short form -vb is non-standard. Most tools use -v for verbose:

# Current (non-standard)
xmv fileA fileB -vb

# Proposed (standard)
xmv fileA fileB -v

Consider shorter aliases for path options

Current --1-to and --2-to work but could have shorter forms:

  • --1-to → also accept -1 or --to1
  • --2-to → also accept -2 or --to2

Backward Compatibility

All renamed options should keep their old names as aliases to avoid breaking existing scripts.

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions