Split --dump-config into two options

--dump-config with its optional argument tended to consume the command name, so
it had to be split up.
This commit is contained in:
Joscha
2021-05-25 16:57:14 +02:00
parent a848194601
commit 519a7ef435
2 changed files with 16 additions and 9 deletions

View File

@ -155,11 +155,14 @@ PARSER.add_argument(
)
PARSER.add_argument(
"--dump-config",
nargs="?",
const=True,
action="store_true",
help="dump current configuration to the default config path and exit"
)
PARSER.add_argument(
"--dump-config-to",
metavar="PATH",
help="dump current configuration to a file and exit."
" Uses default config file path if no path is specified"
" Use '-' as path to print to stdout instead"
)
PARSER.add_argument(
"--crawler", "-C",