The command-line arguments are getting quite large, and it would be nice to be able to collect some of them in files. argparse allows you to specify a fromfile_prefix_chars argument to the parser.parse_args() call to allow the user to specify @args.txt to point to a file containing arguments, one per line.
This parameter should probably be an optional argument to parse_args() and parse_args_and_run() to allow it to be overridden or omitted.
Migrated from internal repository. Originally created by @EvanKirshenbaum on Feb 16, 2023 at 4:19 PM PST. Closed on Feb 17, 2023 at 3:23 PM PST.
Exerciser.parse_args()
is currently defined asThe command-line arguments are getting quite large, and it would be nice to be able to collect some of them in files.
argparse
allows you to specify afromfile_prefix_chars
argument to theparser.parse_args()
call to allow the user to specify@args.txt
to point to a file containing arguments, one per line.This parameter should probably be an optional argument to
parse_args()
andparse_args_and_run()
to allow it to be overridden or omitted.Migrated from internal repository. Originally created by @EvanKirshenbaum on Feb 16, 2023 at 4:19 PM PST. Closed on Feb 17, 2023 at 3:23 PM PST.