Skip to content

Command Line Reference

usage: wj-rar2zip [-h] [--delete] [--dry-run] [-v] directory

Convert RAR archives to ZIP format, preserving all file timestamps.

Recursively scans a directory for .rar files and converts each one to a .zip
file in the same location. Internal file timestamps are preserved, and the
resulting ZIP file's filesystem timestamp matches the original RAR file.

Examples:
  wj-rar2zip /path/to/archives       # Convert all RAR files under the directory
  wj-rar2zip --dry-run /path         # List what would be converted
  wj-rar2zip --delete /path          # Convert and delete original RAR files

positional arguments:
  directory      Root directory to scan for RAR files

options:
  -h, --help     show this help message and exit
  --delete       Delete original RAR files after successful conversion
  --dry-run      List RAR files that would be converted without converting
                 them
  -v, --version  show program's version number and exit