mirror of
https://github.com/Garmelon/PFERD.git
synced 2026-04-12 23:45:05 +02: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:
parent
a848194601
commit
519a7ef435
2 changed files with 16 additions and 9 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue