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
This commit is contained in:
parent
9645304da3
commit
01258580b9
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue