diff options
author | Robert Gogolok <gogo@cs.uni-sb.de> | 2007-12-30 11:55:12 +0000 |
---|---|---|
committer | Robert Gogolok <gogo@cs.uni-sb.de> | 2007-12-30 11:55:12 +0000 |
commit | 73ba22f7e519694dbf7010810de69b3b845f634f (patch) | |
tree | 0e7b24a585c5b9704c36181e238f009ef8f60f03 | |
parent | 6e6a2362c390d9bd405b191b43c529709fb58083 (diff) | |
download | bcfg2-73ba22f7e519694dbf7010810de69b3b845f634f.tar.gz bcfg2-73ba22f7e519694dbf7010810de69b3b845f634f.tar.bz2 bcfg2-73ba22f7e519694dbf7010810de69b3b845f634f.zip |
remove redundant code
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4130 ce84e21b-d406-0410-9b95-82705330c041
-rwxr-xr-x | src/sbin/bcfg2-admin | 3 |
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]] |