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:
Thayne Harbaugh 2015-05-04 20:13:37 -06:00
parent 69333f4af5
commit 51f3252bda

View file

@ -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 '