implemented async tasks in adhoc v2

This commit is contained in:
Brian Coca
2015-08-16 20:05:10 -04:00
parent 43bf9c86d8
commit 9b61cf5840
2 changed files with 4 additions and 14 deletions

View File

@@ -308,8 +308,7 @@ class CLI(object):
help="override the connection timeout in seconds (default=%s)" % C.DEFAULT_TIMEOUT)
if async_opts:
parser.add_option('-P', '--poll', default=C.DEFAULT_POLL_INTERVAL, type='int',
dest='poll_interval',
parser.add_option('-P', '--poll', default=C.DEFAULT_POLL_INTERVAL, type='int', dest='poll_interval',
help="set the poll interval if using -B (default=%s)" % C.DEFAULT_POLL_INTERVAL)
parser.add_option('-B', '--background', dest='seconds', type='int', default=0,
help='run asynchronously, failing after X seconds (default=N/A)')