Skip to content

Commit

Permalink
Rename --filename to --name.
Browse files Browse the repository at this point in the history
  • Loading branch information
roddhjav committed Jan 30, 2022
1 parent fcb2154 commit 5f22aa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pass_audit/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def add_arguments(self):
self.add_argument('-V', '--version', action='version',
version='%(prog)s ' + __version__,
help='Show the program version and exit.')
self.add_argument('-f', '--filename', type=str, default="*",
self.add_argument('-n', '--name', type=str, default="*",
help="""Check only passwords with this filename""")
group = self.add_mutually_exclusive_group()
group.add_argument('-v', '--verbose', action='count', default=0,
Expand Down Expand Up @@ -82,7 +82,7 @@ def setup():
if not store.isvalid():
msg.die('invalid user ID, password access aborted.')

paths = store.list(arg.paths, arg.filename)
paths = store.list(arg.paths, arg.name)
if not paths:
msg.die(f"{arg.paths} is not in the password store.")

Expand Down

0 comments on commit 5f22aa9

Please sign in to comment.