Skip to content

Commit

Permalink
Update cli help messages
Browse files Browse the repository at this point in the history
  • Loading branch information
nolze committed Jun 3, 2021
1 parent 3d9cd49 commit f4fb02c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions msoffcrypto/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ def is_encrypted(file):

parser = argparse.ArgumentParser()
group = parser.add_mutually_exclusive_group(required=True)
group.add_argument("-p", "--password", nargs="?", const="", dest="password", help="Password text.")
group.add_argument("-t", "--test", dest="test_encrypted", action="store_true", help="Test if the file is encrypted.")
parser.add_argument("-v", dest="verbose", action="store_true", help="Print verbose information.")
parser.add_argument("infile", nargs="?", type=argparse.FileType("rb"), help="Input file.")
parser.add_argument("outfile", nargs="?", type=argparse.FileType("wb"), help="Output file. If blank, stdout is used.")
group.add_argument("-p", "--password", nargs="?", const="", dest="password", help="password text")
group.add_argument("-t", "--test", dest="test_encrypted", action="store_true", help="test if the file is encrypted")
parser.add_argument("-v", dest="verbose", action="store_true", help="print verbose information")
parser.add_argument("infile", nargs="?", type=argparse.FileType("rb"), help="input file")
parser.add_argument("outfile", nargs="?", type=argparse.FileType("wb"), help="output file (if blank, stdout is used)")


def main():
Expand Down

0 comments on commit f4fb02c

Please sign in to comment.