summaryrefslogtreecommitdiff
path: root/kvmd/application.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-02-10 02:46:38 +0300
committerDevaev Maxim <[email protected]>2019-02-10 02:46:38 +0300
commit8ae714ab3caaa77de94bdafef02548a1b068f41f (patch)
tree3303b3ec50482f6eff33165c531922855f3a2697 /kvmd/application.py
parentd743b2780ab686fb216ff68373fa94ebe69a455a (diff)
kvmd-htpasswd
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")