aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/klippy.py
diff options
context:
space:
mode:
Diffstat (limited to 'klippy/klippy.py')
-rw-r--r--klippy/klippy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/klippy.py b/klippy/klippy.py
index 83a962fa..0cdb408f 100644
--- a/klippy/klippy.py
+++ b/klippy/klippy.py
@@ -340,10 +340,10 @@ def main():
options, args = opts.parse_args()
if options.import_test:
import_test()
- if len(args) != 1:
+ if len(args) > 1:
opts.error("Incorrect number of arguments")
start_args = {
- "config_file": args[0],
+ "config_file": args[0] if len(args) >= 1 else "/etc/klipper.cfg",
"apiserver": options.apiserver,
"start_reason": "startup",
}