From 8a0b8629e86efeddec7da5f8976231deee000f7f Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Tue, 24 Mar 2015 00:17:10 -0400 Subject: [PATCH] readded -u option --- v2/ansible/utils/cli.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/v2/ansible/utils/cli.py b/v2/ansible/utils/cli.py index 09f5ef4a30f..6500234c741 100644 --- a/v2/ansible/utils/cli.py +++ b/v2/ansible/utils/cli.py @@ -46,6 +46,8 @@ def base_parser(usage="", output_opts=False, runas_opts=False, meta_opts=False, parser = SortedOptParser(usage, version=version("%prog")) + parser.add_option('-u', '--user', default=C.DEFAULT_REMOTE_USER, dest='remote_user', + help='connect as this user (default=%s)' % C.DEFAULT_REMOTE_USER) parser.add_option('-v','--verbose', dest='verbosity', default=0, action="count", help="verbose mode (-vvv for more, -vvvv to enable connection debugging)") parser.add_option('-f','--forks', dest='forks', default=C.DEFAULT_FORKS, type='int',