From 96993d3762fda789d3367d1e90d30a3eb082d7ef Mon Sep 17 00:00:00 2001 From: Chris Hambridge Date: Wed, 30 Aug 2017 14:13:54 -0400 Subject: [PATCH] Code comment updates. --- doc/rho.1 | 23 ++++++++++++++++++++++- rho/factdecryptcommand.py | 2 +- rho/factencryptcommand.py | 4 ++-- rho/factredactcommand.py | 4 ++-- 4 files changed, 27 insertions(+), 6 deletions(-) diff --git a/doc/rho.1 b/doc/rho.1 index 00e7c1b..883647c 100644 --- a/doc/rho.1 +++ b/doc/rho.1 @@ -337,10 +337,17 @@ and .B rho fact redact .B --reportfile= .I file +.B [--outputfile= +.I path +.B ] .PP .TP --reportfile=file -The path and filename of the comma-separated values (CSV) file to alter. +The path and filename of the comma-separated values (CSV) file to read from. +.PP +.TP +--outputfile=path +The path and filename of the comma-separated values (CSV) file to be written. .PP .B Encrypting Facts @@ -353,11 +360,18 @@ and .B rho fact encrypt .B --reportfile= .I file +.B [--outputfile= +.I path +.B ] .PP .TP --reportfile=file The path and filename of the comma-separated values (CSV) file to alter. .PP +.TP +--outputfile=path +The path and filename of the comma-separated values (CSV) file to be written. +.PP .B Decrypting Facts .PP @@ -369,11 +383,18 @@ and .B rho fact decrypt .B --reportfile= .I file +.B [--outputfile= +.I path +.B ] .PP .TP --reportfile=file The path and filename of the comma-separated values (CSV) file to alter. .PP +.TP +--outputfile=path +The path and filename of the comma-separated values (CSV) file to be written. +.PP .PP .SS SCANNING The 'scan' command is the one that actually runs discovery on the network. This command scans all of the servers within the range, and then writes the information to a CSV file. diff --git a/rho/factdecryptcommand.py b/rho/factdecryptcommand.py index 22b85a7..b5940a2 100644 --- a/rho/factdecryptcommand.py +++ b/rho/factdecryptcommand.py @@ -43,7 +43,7 @@ def __init__(self): action="callback", callback=multi_arg, default=[], help=SUPPRESS_HELP) - self.parser.add_option("--decrypted-path", dest="decrypted_path", + self.parser.add_option("--outputfile", dest="decrypted_path", metavar="DECRYPTEDPATH", help=_("Location for the decrypted file")) diff --git a/rho/factencryptcommand.py b/rho/factencryptcommand.py index 9165508..7c740f6 100644 --- a/rho/factencryptcommand.py +++ b/rho/factencryptcommand.py @@ -43,9 +43,9 @@ def __init__(self): action="callback", callback=multi_arg, default=[], help=SUPPRESS_HELP) - self.parser.add_option("--encrypted-path", dest="encrypted_path", + self.parser.add_option("--outputfile", dest="encrypted_path", metavar="ENCRYPTEDPATH", - help=_("Destination for the encrypted file"), + help=_("Location for the encrypted file"), default=None) self.facts_to_encrypt = None diff --git a/rho/factredactcommand.py b/rho/factredactcommand.py index 17d6254..e6b2280 100644 --- a/rho/factredactcommand.py +++ b/rho/factredactcommand.py @@ -42,9 +42,9 @@ def __init__(self): action="callback", callback=multi_arg, default=[], help=SUPPRESS_HELP) - self.parser.add_option("--redacted-path", dest="redacted_path", + self.parser.add_option("--outputfile", dest="redacted_path", metavar="REDACTEDPATH", - help=_("Path to write the redacted report to")) + help=_("Location for the redacted file")) self.facts_to_redact = None