Module: check_mk
Branch: master
Commit: ac5896345fbf6d96d1ed1f9709e27e89b6f1e80b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ac5896345fbf6d…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Nov 11 13:52:58 2014 +0100
Better detection of garbled command line
---
modules/check_mk.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index a2b433a..51916c0 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -6010,7 +6010,9 @@ if __name__ == "__main__":
elif o in [ '-f', '--force' ]:
opt_force = True
elif o == '-c':
- check_mk_configfile = a
+ if check_mk_configfile != 'a':
+ sys.stderr.write("Please use the option -c separated by the other
options.\n")
+ sys.exit(1)
elif o == '--cache':
opt_use_cachefile = True
check_max_cachefile_age = 1000000000