diff options
author | Sol Jerome <sol.jerome@gmail.com> | 2011-09-10 13:16:09 -0500 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2011-09-10 13:16:09 -0500 |
commit | 9584ab6df8498eea40929801a680d66559199a0f (patch) | |
tree | 0ac4b8a6cbe5b5c0675bc95eb73d857b82861229 /src/sbin | |
parent | fde1158163fc938ef0c5463155d6db67e941a265 (diff) | |
download | bcfg2-9584ab6df8498eea40929801a680d66559199a0f.tar.gz bcfg2-9584ab6df8498eea40929801a680d66559199a0f.tar.bz2 bcfg2-9584ab6df8498eea40929801a680d66559199a0f.zip |
bcfg2-admin: Fix conditional for help message
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src/sbin')
-rwxr-xr-x | src/sbin/bcfg2-admin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sbin/bcfg2-admin b/src/sbin/bcfg2-admin index f5ee7df2a..09117a3f4 100755 --- a/src/sbin/bcfg2-admin +++ b/src/sbin/bcfg2-admin @@ -64,7 +64,7 @@ def main(): if setup['args'][0] in get_modes(): modname = setup['args'][0].capitalize() - if setup['args'][1] == 'help': + if len(setup['args']) > 1 and setup['args'][1] == 'help': print(mode_import(modname).__longhelp__) raise SystemExit(0) try: |