str4d / rage

A simple, secure and modern file encryption tool (and Rust library) with small explicit keys, no config options, and UNIX-style composability.
https://age-encryption.org/v1
Apache License 2.0
2.69k stars 103 forks source link

Feature-parity with age: version flag #485

Closed razvanazamfirei closed 9 months ago

razvanazamfirei commented 9 months ago

Environment

What were you trying to do

rage -version

age supports -version, but rage does not. This can cause an issue if rage is used as a drop-in for age.

What happened


❯ rage -version
error: unexpected argument '-v' found

  tip: to pass '-v' as a value, use '-- -v'

Usage: rage [--encrypt] (-r RECIPIENT | -R PATH)... [-i IDENTITY] [-a] [-o OUTPUT] [INPUT]
       rage [--encrypt] --passphrase [-a] [-o OUTPUT] [INPUT]
       rage --decrypt [-i IDENTITY] [-o OUTPUT] [INPUT]```
razvanazamfirei commented 9 months ago

See, e.g., https://github.com/twpayne/chezmoi/issues/3551

str4d commented 9 months ago

You can use either -v or --version with current rage. -version will not be supported.