Skip to content

Commit

Permalink
add choices [csv,xml,html] to argparse
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwendt committed Dec 14, 2021
1 parent 95324e9 commit 1d1b8a0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cpp/scripts/sort_ninja_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
"log_file", type=str, default=".ninja_log", help=".ninja_log file"
)
parser.add_argument(
"--fmt", type=str, default="csv", help="output format (csv, xml, html)"
"--fmt",
type=str,
default="csv",
choices=["csv", "xml", "html"],
help="output format (to stdout)",
)
parser.add_argument(
"--msg",
Expand Down

0 comments on commit 1d1b8a0

Please sign in to comment.