summaryrefslogtreecommitdiffstats
path: root/ipa-admintools/ipa-lockuser
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-01-31 10:52:05 -0500
committerRob Crittenden <rcritten@redhat.com>2008-01-31 10:52:05 -0500
commit64cce8f82e08f0716eec3fd4c1f3c0fccf309fba (patch)
treeeea4477c5de7caf07809b5f893f0d8972f1bccc2 /ipa-admintools/ipa-lockuser
parentae5cb78ab804f289b1b0c05cc0cf219585c990ac (diff)
downloadfreeipa-64cce8f82e08f0716eec3fd4c1f3c0fccf309fba.tar.gz
freeipa-64cce8f82e08f0716eec3fd4c1f3c0fccf309fba.tar.xz
freeipa-64cce8f82e08f0716eec3fd4c1f3c0fccf309fba.zip
Handle the --usage option by actually displaying the usage
Fix some missing options in --usage Remove a few debugging statements Resolves 430704
Diffstat (limited to 'ipa-admintools/ipa-lockuser')
-rw-r--r--ipa-admintools/ipa-lockuser4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipa-admintools/ipa-lockuser b/ipa-admintools/ipa-lockuser
index f5aaa37c1..d4a2959d5 100644
--- a/ipa-admintools/ipa-lockuser
+++ b/ipa-admintools/ipa-lockuser
@@ -29,7 +29,7 @@ import xmlrpclib
import kerberos
def usage():
- print "ipa-lockuser user"
+ print "ipa-lockuser [-u|--unlock] user"
sys.exit(1)
def parse_options():
@@ -47,7 +47,7 @@ def parse_options():
def main():
options, args = parse_options()
- if len(args) != 2:
+ if options.usage or len(args) != 2:
usage()
msg = "inactivated"