summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/sbin/bcfg2-admin3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sbin/bcfg2-admin b/src/sbin/bcfg2-admin
index d4f30075f..fb9a58c7d 100755
--- a/src/sbin/bcfg2-admin
+++ b/src/sbin/bcfg2-admin
@@ -29,8 +29,6 @@ if __name__ == '__main__':
help = False
- if not args:
- help = True
# First get the options...
for opt, arg in opts:
if opt in ("-h", "--help"):
@@ -40,6 +38,7 @@ if __name__ == '__main__':
modes = [x.lower() for x in Bcfg2.Server.Admin.__all__]
modes.remove('mode')
+
if help or len(args) < 1 or args[0] == 'help':
if len(args) > 1:
args = [args[1], args[0]]