summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorChristopher Johnston <chjohnst@gmail.com>2012-03-28 14:17:20 -0700
committerChristopher Johnston <chjohnst@gmail.com>2012-03-28 14:17:20 -0700
commit9041ad4d830692677712323475d086e8563481ba (patch)
treebbc81cd84de6396cda6513851bd2835e2278c010 /bin
parent15e781eb5100a3b595227f2a5ec58a581b884cc7 (diff)
downloadansible-9041ad4d830692677712323475d086e8563481ba.tar.gz
just some minor clean up single vs double in getopt parsing
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ansible26
1 files changed, 13 insertions, 13 deletions
diff --git a/bin/ansible b/bin/ansible
index a2867c2c1d..ca5a8c7ce3 100755
--- a/bin/ansible
+++ b/bin/ansible
@@ -49,28 +49,28 @@ class Cli(object):
''' create an options parser for bin/ansible '''
parser = OptionParser(usage = 'ansible <host-pattern> [options]')
- parser.add_option("-a", "--args", dest="module_args",
+ parser.add_option('-a', '--args', dest='module_args',
help="module arguments", default=C.DEFAULT_MODULE_ARGS)
- parser.add_option("-B", "--background", dest="seconds", type='int', default=0,
- help="run asynchronously, failing after X seconds")
+ parser.add_option('-B', '--background', dest='seconds', type='int', default=0,
+ help='run asynchronously, failing after X seconds')
parser.add_option('-f','--forks', dest='forks', default=C.DEFAULT_FORKS, type='int',
help='number of parallel processes to use')
- parser.add_option("-i", "--inventory-file", dest="inventory",
- help="inventory host file", default=C.DEFAULT_HOST_LIST)
- parser.add_option("-k", "--ask-pass", default=False, action="store_true",
- help="ask for SSH password")
- parser.add_option("-M", "--module-path", dest="module_path",
+ parser.add_option('-i', '--inventory-file', dest='inventory',
+ help='inventory host file', default=C.DEFAULT_HOST_LIST)
+ parser.add_option('-k', '--ask-pass', default=False, action='store_true',
+ help='ask for SSH password')
+ parser.add_option('-M', '--module-path', dest='module_path',
help="path to module library", default=C.DEFAULT_MODULE_PATH)
- parser.add_option("-m", "--module-name", dest="module_name",
+ parser.add_option('-m', '--module-name', dest='module_name',
help="module name to execute", default=C.DEFAULT_MODULE_NAME)
parser.add_option('-o', '--one-line', dest='one_line', action='store_true',
- help="condense output")
+ help='condense output')
parser.add_option('-P', '--poll', default=C.DEFAULT_POLL_INTERVAL, type='int',
- dest='poll_interval', help="set the poll interval if using -B")
+ dest='poll_interval', help='set the poll interval if using -B')
parser.add_option('-t', '--tree', dest='tree', default=None,
- help="log output to this directory")
+ help='log output to this directory')
parser.add_option('-T', '--timeout', default=C.DEFAULT_TIMEOUT, type='int',
- dest='timeout', help="set the SSH timeout in seconds")
+ dest='timeout', help='set the SSH timeout in seconds')
parser.add_option('-u', '--user', default=C.DEFAULT_REMOTE_USER,
dest='remote_user', help='connect as this user')
parser.add_option('-p', '--port', default=C.DEFAULT_REMOTE_PORT, type='int',