beet modify: Treat arguments with : before = as queries, not modifications

This can be useful if the value being queried contains an equal sign.
This commit is contained in:
Mook 2014-04-13 19:41:22 -07:00
parent e21c04e912
commit 52d0c19fb7

View file

@ -1170,7 +1170,7 @@ def modify_func(lib, opts, args):
for arg in args:
if arg.endswith('!') and '=' not in arg and ':' not in arg:
dels.append(arg[:-1]) # Strip trailing !.
elif '=' in arg:
elif '=' in arg and ':' not in arg.split('=', 1)[0]:
mods.append(arg)
else:
query.append(arg)