diff options
Diffstat (limited to 'python/qadmin.py')
-rwxr-xr-x | python/qadmin.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/python/qadmin.py b/python/qadmin.py index 939c075a..bdc47cc2 100755 --- a/python/qadmin.py +++ b/python/qadmin.py @@ -21,6 +21,10 @@ Following commands expect default queue: show batch <batch_id>; show batch <consumer>; + +Other commands: + + exit; (or press ^D) """ # unimplemented: @@ -380,6 +384,7 @@ w_top = List( Word('register', w_cons_on_queue), Word('unregister', w_cons_from_queue), Word('show', w_show), + Word('exit', w_done), name = "cmd") top_level.set_real(w_top) @@ -976,6 +981,9 @@ class AdminConsole: def cmd_show_help(self, params): print __doc__ + def cmd_exit(self, params): + sys.exit(0) + def main(): global script script = AdminConsole() |