diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2007-06-11 23:44:43 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2007-06-11 23:44:43 +0000 |
commit | f8ccb25a9300942006881bb371fde040d5c87147 (patch) | |
tree | ebabd61bbf82a99179de69fe7f689330c0f763c9 /src/sbin/bcfg2-admin | |
parent | e734f9117d3d81447bec3a1e8681c29c70686432 (diff) | |
download | bcfg2-f8ccb25a9300942006881bb371fde040d5c87147.tar.gz bcfg2-f8ccb25a9300942006881bb371fde040d5c87147.tar.bz2 bcfg2-f8ccb25a9300942006881bb371fde040d5c87147.zip |
Fix bcfg2-admin traceback without options
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3287 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/sbin/bcfg2-admin')
-rwxr-xr-x | src/sbin/bcfg2-admin | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sbin/bcfg2-admin b/src/sbin/bcfg2-admin index 969f7f2b0..2e5d0777b 100755 --- a/src/sbin/bcfg2-admin +++ b/src/sbin/bcfg2-admin @@ -525,6 +525,10 @@ if __name__ == '__main__': print msg raise SystemExit, 1 + if not args: + print usage + raise SystemExit, 1 + # First get the options... for opt, arg in opts: if opt in ("-h", "--help"): |