sq key generate --force doesn't work as the help output suggests
sq key generate
says that I need to use --force
if a file already exists, but --force
only works as a top-level option, which is confusing. It's unclear to me what the ideal behavior is here, but either sq
needs to be improved or the error should be more precise.
See below:
$ sq key generate -e key.pgp --rev-cert /dev/null
No user ID given, using direct key signature
File "/dev/null" exists, use --force to overwrite
$ sq key generate --force -e key.pgp --rev-cert /dev/null
error: Found argument '--force' which wasn't expected, or isn't valid in this context
USAGE:
sq key generate [FLAGS] [OPTIONS] --export <OUTFILE>
For more information try --help
$ sq key --force generate -e key.pgp --rev-cert /dev/null
error: Found argument '--force' which wasn't expected, or isn't valid in this context
USAGE:
sq key [SUBCOMMAND]
For more information try --help
$ sq --force key generate -e key.pgp --rev-cert /dev/null
No user ID given, using direct key signature