Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Commit

Permalink
#61 Fix help for cli commands
Browse files Browse the repository at this point in the history
  • Loading branch information
antban committed Sep 20, 2016
1 parent aae9ce3 commit ff19b75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bubuku/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,11 @@ def list_actions(broker: str):
_print_table(table)


@actions.command('delete', help='List all the actions on broker(s)')
@actions.command('delete', help='Remove all actions of specified type on broker(s)')
@click.option('--action', type=click.STRING,
help='Action to delete')
@click.option('--broker', type=click.STRING,
help='Broker id to list actions on. By default all brokers are enumerated')
help='Broker id to delete actions on. By default actions are deleted on all brokers')
def delete_actions(action: str, broker: str):
if not action:
print('No action specified. Please specify it')
Expand Down
4 changes: 2 additions & 2 deletions bubuku/communicate.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ def sleep_and_operate(controller, timeout: float):
finish = cur_time + (0.1 if timeout <= 0 else timeout)
while cur_time < finish:
try:
commnad = __COMMAND_QUEUE.get(block=True, timeout=finish - cur_time)
command = __COMMAND_QUEUE.get(block=True, timeout=finish - cur_time)
try:
commnad(controller)
command(controller)
except Exception as e:
_LOG.error('Command finished with error', exc_info=e)
except Empty:
Expand Down

0 comments on commit ff19b75

Please sign in to comment.