summaryrefslogtreecommitdiffstats
path: root/cobbler/commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'cobbler/commands.py')
-rw-r--r--cobbler/commands.py16
1 files changed, 12 insertions, 4 deletions
diff --git a/cobbler/commands.py b/cobbler/commands.py
index 88d92b7..e5eb2de 100644
--- a/cobbler/commands.py
+++ b/cobbler/commands.py
@@ -17,6 +17,8 @@ from cexceptions import *
from rhpl.translate import _, N_, textdomain, utf8
import sys
+HELP_FORMAT = "%-25s%s"
+
#=============================================================
class FunctionLoader:
@@ -69,10 +71,16 @@ class FunctionLoader:
Prints out all loaded functions.
"""
- print "usage:"
- print "======"
- for name in self.functions.keys():
- print "cobbler %s --help]" % name
+ print "commands:"
+ print "========="
+
+ names = self.functions.keys()
+ names.sort()
+
+ for name in names:
+ help = self.functions[name].help_me()
+ if help != "":
+ print help
#=============================================================