Skip to content

Commit

Permalink
cli: add refresh parameter to export-and-clean command (bug 1814933) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzeid authored Feb 3, 2023
1 parent 09d888c commit 359390d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/mots/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,9 +408,11 @@ def create_parser(subcommand=None):
parsers["clean"].add_argument(*path_flags, **path_args)
parsers["check-hashes"].add_argument(*path_flags, **path_args)

parsers["clean"].add_argument(
"--refresh", action="store_true", help="refresh user data from Bugzilla"
)
for _parser in (parsers["clean"], parsers["export-and-clean"]):
# Add common --refresh argument to both parsers.
_parser.add_argument(
"--refresh", action="store_true", help="refresh user data from Bugzilla"
)

if not subcommand:
return parser
Expand Down

0 comments on commit 359390d

Please sign in to comment.