mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add docs for new escape kwarg
This commit is contained in:
parent
391bb8a411
commit
3be11e06fe
1 changed files with 5 additions and 0 deletions
|
@ -177,6 +177,11 @@ def escape_argument(arg, escape=True):
|
|||
Args:
|
||||
arg (str): a single command line argument to escape for the cmd.exe shell
|
||||
|
||||
Kwargs:
|
||||
escape (bool): True will call the escape_for_cmd_exe() function
|
||||
which escapes the characters '()%!^"<>&|'. False
|
||||
will not call the function and only quotes the cmd
|
||||
|
||||
Returns:
|
||||
str: an escaped string suitable to be passed as a program argument to the cmd.exe shell
|
||||
'''
|
||||
|
|
Loading…
Add table
Reference in a new issue