-
Notifications
You must be signed in to change notification settings - Fork 7
Add path options to fact encrypt, decrypt, and redact #249
Conversation
Let users specify the path to write the encrypted, decrypted, or redacted file to. If not given, default to not overwriting the original report file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple comments on the help wording. Additionally this information now needs to be added to the updated man documentation.
rho/factdecryptcommand.py
Outdated
|
||
self.parser.add_option("--decrypted-path", dest="decrypted_path", | ||
metavar="DECRYPTEDPATH", | ||
help=_("Location for the decrypted file")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should use consistent working this is different than encryption help:
Destination for the encrypted file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think all the new option could be named the same --path
or --destinationfile
or --somethingbetter
. The subcommand would already provide the context if the user is encrypt
, decrypt
or redact
.
rho/factredactcommand.py
Outdated
|
||
self.parser.add_option("--redacted-path", dest="redacted_path", | ||
metavar="REDACTEDPATH", | ||
help=_("Path to write the redacted report to")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar help consistency wording would be nice here.
Let users specify the path to write the encrypted, decrypted, or
redacted file to. If not given, default to not overwriting the
original report file.
Closes #247 .