summaryrefslogtreecommitdiff
path: root/kvmd/apps
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-06-19 22:03:45 +0300
committerMaxim Devaev <[email protected]>2022-06-19 22:03:45 +0300
commit804bb68ae3fe21a79cfde0de91ce6e11642a5bb8 (patch)
tree1fa8f104f7f9631232ef0e5db0ff3cd2baa2cc15 /kvmd/apps
parentdd3044753ce2e82b6b7654bf118401633f1a840a (diff)
print all logs to stderr
Diffstat (limited to 'kvmd/apps')
-rw-r--r--kvmd/apps/__init__.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py
index 92577a93..314c6b1b 100644
--- a/kvmd/apps/__init__.py
+++ b/kvmd/apps/__init__.py
@@ -126,11 +126,11 @@ def init(
add_help=add_help,
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
)
- parser.add_argument("-c", "--config", dest="config_path", default="/etc/kvmd/main.yaml", type=valid_abs_file,
+ parser.add_argument("-c", "--config", default="/etc/kvmd/main.yaml", type=valid_abs_file,
help="Set config file path", metavar="<file>")
- parser.add_argument("-o", "--set-options", dest="set_options", default=[], nargs="+",
+ parser.add_argument("-o", "--set-options", default=[], nargs="+",
help="Override config options list (like sec/sub/opt=value)", metavar="<k=v>",)
- parser.add_argument("-m", "--dump-config", dest="dump_config", action="store_true",
+ parser.add_argument("-m", "--dump-config", action="store_true",
help="View current configuration (include all overrides)")
if check_run:
parser.add_argument("--run", dest="run", action="store_true",
@@ -139,7 +139,7 @@ def init(
if options.dump_config:
_dump_config(_init_config(
- config_path=options.config_path,
+ config_path=options.config,
override_options=options.set_options,
load_auth=True,
load_hid=True,
@@ -148,7 +148,7 @@ def init(
load_gpio=True,
))
raise SystemExit()
- config = _init_config(options.config_path, options.set_options, **load)
+ config = _init_config(options.config, options.set_options, **load)
logging.captureWarnings(True)
logging.config.dictConfig(config.logging)