diff options
author | Rob Crittenden <rcritten@redhat.com> | 2008-01-31 10:52:05 -0500 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2008-01-31 10:52:05 -0500 |
commit | 64cce8f82e08f0716eec3fd4c1f3c0fccf309fba (patch) | |
tree | eea4477c5de7caf07809b5f893f0d8972f1bccc2 /ipa-admintools/ipa-passwd | |
parent | ae5cb78ab804f289b1b0c05cc0cf219585c990ac (diff) | |
download | freeipa-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-passwd')
-rw-r--r-- | ipa-admintools/ipa-passwd | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ipa-admintools/ipa-passwd b/ipa-admintools/ipa-passwd index ec656fdb..1e658a85 100644 --- a/ipa-admintools/ipa-passwd +++ b/ipa-admintools/ipa-passwd @@ -61,9 +61,13 @@ def main(): username = None principal = None - krbctx = krbV.default_context() options, args = parse_options() + if options.usage: + usage() + + krbctx = krbV.default_context() + if len(args) == 2: username = args[1] else: |