From 64cce8f82e08f0716eec3fd4c1f3c0fccf309fba Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Thu, 31 Jan 2008 10:52:05 -0500 Subject: Handle the --usage option by actually displaying the usage Fix some missing options in --usage Remove a few debugging statements Resolves 430704 --- ipa-admintools/ipa-addgroup | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ipa-admintools/ipa-addgroup') diff --git a/ipa-admintools/ipa-addgroup b/ipa-admintools/ipa-addgroup index e8c89ed5..c8a764f1 100644 --- a/ipa-admintools/ipa-addgroup +++ b/ipa-admintools/ipa-addgroup @@ -33,7 +33,7 @@ import ldap import errno def usage(): - print "ipa-addgroup [-d|--description STRING] group" + print "ipa-addgroup [-d|--description STRING] [-g|--gid GID] group" sys.exit(1) def parse_options(): @@ -57,6 +57,9 @@ def main(): group=ipa.group.Group() options, args = parse_options() + if options.usage: + usage() + cont = False if (len(args) != 2): -- cgit