diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-07-20 18:50:40 +0000 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-07-20 18:50:40 +0000 |
commit | 97a3520d3737d10717956ad6fff1e558e7261a2d (patch) | |
tree | 0f5643291ac5c2f6aa8b1d6eeec04f6ebed5aa12 /ipa | |
parent | 14339cfae01b843949d0f9972670f56f952a5faa (diff) | |
download | freeipa-97a3520d3737d10717956ad6fff1e558e7261a2d.tar.gz freeipa-97a3520d3737d10717956ad6fff1e558e7261a2d.tar.xz freeipa-97a3520d3737d10717956ad6fff1e558e7261a2d.zip |
21: ipa script: improved print_api(); added missing sys.exit() after print_api() call
Diffstat (limited to 'ipa')
-rwxr-xr-x | ipa | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -47,8 +47,9 @@ def print_api(): for n in obj.commands: print ' .%s()' % n - print '%d objects' % len(api.objects) - print '%d commands' % len(api.commands) + print '\nStats:' + print ' %d objects' % len(api.objects) + print ' %d commands' % len(api.commands) if len(sys.argv) < 2: @@ -58,6 +59,7 @@ if len(sys.argv) < 2: cmd = sys.argv[1] if cmd == '_api_': print_api() + sys.exit() elif cmd not in api.commands: print_commands() print 'ipa: ERROR: unknown command %r' % cmd |