Skip to content

Commit 3b5f8b6

Browse files
authored
Fix CLI args to match docstring usage (remove -f flag) (#748)
1 parent 2d9af3f commit 3b5f8b6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tool/promotion.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,8 @@ def _parse_args(args: Sequence[str] | None, /) -> argparse.Namespace:
187187
parser = argparse.ArgumentParser(prog="promotion.py")
188188

189189
parser.add_argument(
190-
"-f",
191-
"--format",
192-
type=str,
190+
"format",
191+
nargs="?",
193192
choices=["table", "graph"],
194193
default="table",
195194
help="display format",

0 commit comments

Comments
 (0)