Module: check_mk
Branch: master
Commit: 6eac55816b8c8a793937786bcb1d9930be600722
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6eac55816b8c8a…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Dec 14 13:09:55 2018 +0100
Fixed accidentally purged code at end of file
Change-Id: I7555062071c773682509811abe834d832a2689a8
---
cmk_base/modes/check_mk.py | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/cmk_base/modes/check_mk.py b/cmk_base/modes/check_mk.py
index 33b4634..a510abe 100644
--- a/cmk_base/modes/check_mk.py
+++ b/cmk_base/modes/check_mk.py
@@ -1692,3 +1692,39 @@ modes.register(
))
#.
+# .--help----------------------------------------------------------------.
+# | _ _ |
+# | | |__ ___| |_ __ |
+# | | '_ \ / _ \ | '_ \ |
+# | | | | | __/ | |_) | |
+# | |_| |_|\___|_| .__/ |
+# | |_| |
+# '----------------------------------------------------------------------'
+
+
+def mode_help():
+ console.output("""WAYS TO CALL:
+%s
+
+OPTIONS:
+%s
+
+NOTES:
+%s
+
+""" % (
+ modes.short_help(),
+ modes.general_option_help(),
+ modes.long_help(),
+ ))
+
+
+modes.register(
+ Mode(
+ long_option="help",
+ short_option="h",
+ handler_function=mode_help,
+ short_help="Print this help",
+ needs_config=False,
+ needs_checks=False,
+ ))