summaryrefslogtreecommitdiff
path: root/kvmd/application.py
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/application.py')
-rw-r--r--kvmd/application.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/application.py b/kvmd/application.py
index 8a3c40a0..4b8af949 100644
--- a/kvmd/application.py
+++ b/kvmd/application.py
@@ -23,8 +23,8 @@ from .yamlconf.loader import load_yaml_file
# =====
-def init() -> Tuple[argparse.ArgumentParser, List[str], Section]:
- args_parser = argparse.ArgumentParser(add_help=False)
+def init(prog: str=sys.argv[0], add_help: bool=True) -> Tuple[argparse.ArgumentParser, List[str], Section]:
+ args_parser = argparse.ArgumentParser(prog=prog, add_help=add_help)
args_parser.add_argument("-c", "--config", dest="config_path", default="/etc/kvmd/kvmd.yaml", metavar="<file>")
args_parser.add_argument("-o", "--set-options", dest="set_options", default=[], nargs="+")
args_parser.add_argument("-m", "--dump-config", dest="dump_config", action="store_true")