summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/sbin/bcfg2-admin10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/sbin/bcfg2-admin b/src/sbin/bcfg2-admin
index 71ac68efc..7ed79b4b2 100755
--- a/src/sbin/bcfg2-admin
+++ b/src/sbin/bcfg2-admin
@@ -17,6 +17,7 @@ def mode_import(modename):
if __name__ == '__main__':
Bcfg2.Logger.setup_logging('bcfg2-admin', to_console=True, level=40)
+ avail_opts = {'-C <configfile>': 'Set alternate bcfg2.conf location'}
# Get config file path
configfile = Bcfg2.Options.CFILE.default
try:
@@ -35,13 +36,16 @@ if __name__ == '__main__':
modes.remove('mode')
if len(args) < 1 or args[0] == 'help':
- print ("Usage: bcfg2-admin MODE [ARGS]\n\n"
- "Available modes are:")
+ print ("Usage: bcfg2-admin [OPTIONS] MODE [ARGS]\n\n"
+ "Available options are:")
+ for (opt, arg) in avail_opts.iteritems():
+ print (" %-15s " % opt + arg)
+ print ("\nAvailable modes are:")
if len(args) > 1:
args = [args[1], args[0]]
else:
for mode in modes:
- print (" %-12s %s" %
+ print (" %-15s %s" %
(mode, mode_import(mode).__shorthelp__))
raise SystemExit(0)
if args[0] in modes: