summaryrefslogtreecommitdiff
path: root/lib/ansible/cli
diff options
context:
space:
mode:
authorToby Foster <hi@tsf.io>2020-05-12 09:06:24 +0100
committerGitHub <noreply@github.com>2020-05-12 04:06:24 -0400
commit01258580b9061e7ce553af2c1097e3c52ffeb219 (patch)
treeb114d0ea11e01014a358f502c37557f694a9172b /lib/ansible/cli
parent9645304da345a476a400b8d919852dae6a34f3b1 (diff)
downloadansible-01258580b9061e7ce553af2c1097e3c52ffeb219.tar.gz
Fix formatting in docs for `--become-method` (#68152)
The default value isn't displayed currently: <https://docs.ansible.com/ansible/latest/cli/ansible.html#cmdoption-ansible-become-method> +label: docsite_pr
Diffstat (limited to 'lib/ansible/cli')
-rw-r--r--lib/ansible/cli/arguments/option_helpers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ansible/cli/arguments/option_helpers.py b/lib/ansible/cli/arguments/option_helpers.py
index 945a76011b..e18cd6ce9a 100644
--- a/lib/ansible/cli/arguments/option_helpers.py
+++ b/lib/ansible/cli/arguments/option_helpers.py
@@ -318,8 +318,8 @@ def add_runas_options(parser):
runas_group.add_argument("-b", "--become", default=C.DEFAULT_BECOME, action="store_true", dest='become',
help="run operations with become (does not imply password prompting)")
runas_group.add_argument('--become-method', dest='become_method', default=C.DEFAULT_BECOME_METHOD,
- help="privilege escalation method to use (default=%(default)s), use "
- "`ansible-doc -t become -l` to list valid choices.")
+ help='privilege escalation method to use (default=%s)' % C.DEFAULT_BECOME_METHOD +
+ ', use `ansible-doc -t become -l` to list valid choices.')
runas_group.add_argument('--become-user', default=None, dest='become_user', type=str,
help='run operations as this user (default=%s)' % C.DEFAULT_BECOME_USER)