IronCoreLabs / ironhide

Tool to easily encrypt and decrypt files to users and groups. Similar to GPG, but usable at scale.
GNU Affero General Public License v3.0
44 stars 6 forks source link

File decrypt should accept option arguments before files to decrypt #73

Closed BobWall23 closed 1 year ago

BobWall23 commented 1 year ago

Executing ironhide file decrypt --help indicates

USAGE:
    ironhide file decrypt [OPTIONS] <FILES>...

However, a command like ironhide file decrypt -o test-file file.iron generates the error

error: The following required arguments were not provided:
    <FILES>...

USAGE:
    ironhide file decrypt --out <OUT>... <FILES>...

Putting a .iron file name before the --out does allow the file to be decrypted.

Update the command line parser so it will accept the -o option before the file list.

NOTE: the -k <keyfile option does work before or after the list of files.