mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add a short argument (-P) for --grain-pcre
The compound matcher uses P@ for grain-pcre matches. Currently -P is only used for salt-key and salt cloud cli parsers so "-P" should not collide with another option.
This commit is contained in:
parent
69333f4af5
commit
51f3252bda
1 changed files with 1 additions and 1 deletions
|
@ -850,7 +850,7 @@ class TargetOptionsMixIn(six.with_metaclass(MixInMeta, object)):
|
|||
'expression:\n"os:Arch*"')
|
||||
)
|
||||
group.add_option(
|
||||
'--grain-pcre',
|
||||
'-P', '--grain-pcre',
|
||||
default=False,
|
||||
action='store_true',
|
||||
help=('Instead of using shell globs to evaluate the target '
|
||||
|
|
Loading…
Add table
Reference in a new issue