summaryrefslogtreecommitdiffstats
path: root/src/sbin/bcfg2-admin
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-06-11 23:44:43 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-06-11 23:44:43 +0000
commitf8ccb25a9300942006881bb371fde040d5c87147 (patch)
treeebabd61bbf82a99179de69fe7f689330c0f763c9 /src/sbin/bcfg2-admin
parente734f9117d3d81447bec3a1e8681c29c70686432 (diff)
downloadbcfg2-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-xsrc/sbin/bcfg2-admin4
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"):