add '--config-open' and '--config-status' (#5713)

adapted from 119a25a59cd07781844136ed3d360e7d820b112c
This commit is contained in:
Mike Fährmann
2024-06-13 23:08:11 +02:00
parent a92c0bef96
commit 3fc2e61818
4 changed files with 92 additions and 3 deletions

View File

@@ -461,9 +461,19 @@ def build_parser():
)
configuration.add_argument(
"--config-create",
dest="config_init", action="store_true",
dest="config", action="store_const", const="init",
help="Create a basic configuration file",
)
configuration.add_argument(
"--config-status",
dest="config", action="store_const", const="status",
help="Show configuration file status",
)
configuration.add_argument(
"--config-open",
dest="config", action="store_const", const="open",
help="Open configuration file in external application",
)
configuration.add_argument(
"--config-ignore",
dest="config_load", action="store_false",