mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
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:
@ -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",
|
||||
|
Reference in New Issue
Block a user