summaryrefslogtreecommitdiffstats
path: root/filters
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2015-12-09 18:18:47 +0100
committerJan Pokorný <jpokorny@redhat.com>2015-12-17 23:37:44 +0100
commitccfe027525c86c0f8834ed51256ac0b0c0e756c0 (patch)
treea24cb2593cb716194e23b88ad2eb43212f97d9fd /filters
parentbe8b42a6d6735ea0db883674f65b5161575413f1 (diff)
downloadclufter-ccfe027525c86c0f8834ed51256ac0b0c0e756c0.tar.gz
clufter-ccfe027525c86c0f8834ed51256ac0b0c0e756c0.tar.xz
clufter-ccfe027525c86c0f8834ed51256ac0b0c0e756c0.zip
filters/cmd_wrap: cmd_args_cutter: property (un)set firm group
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'filters')
-rw-r--r--filters/cmd_wrap.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/filters/cmd_wrap.py b/filters/cmd_wrap.py
index b552b02..37f0819 100644
--- a/filters/cmd_wrap.py
+++ b/filters/cmd_wrap.py
@@ -40,6 +40,14 @@ def cmd_args_cutter(itemgroups):
acc = list(i[pos:pos])
pos += len(acc) - 1
continue
+ if pos <= end - 3:
+ if i[pos:pos + 2] in (('property', 'set'),
+ ('property', 'unset')):
+ # "property set/unset non-option [non-option...]"
+ ret.extend(filter(bool, (tuple(acc), )))
+ acc = list(i[pos:pos + 2])
+ pos += len(acc) - 1
+ continue
if pos <= end - 2:
if i[pos] in ("op", "meta"):
# "op/meta non-option [non-option...]"