mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-18 14:40:51 +01:00
Allow MODE arguments that do not start with a + or a -.
This commit is contained in:
parent
9c1d46d151
commit
af98c0c12e
@ -254,9 +254,9 @@ def separateModes(args):
|
|||||||
if not args:
|
if not args:
|
||||||
return []
|
return []
|
||||||
modes = args[0]
|
modes = args[0]
|
||||||
assert modes[0] in '+-', 'Invalid args: %r' % args
|
|
||||||
args = list(args[1:])
|
args = list(args[1:])
|
||||||
ret = []
|
ret = []
|
||||||
|
last = '+'
|
||||||
for c in modes:
|
for c in modes:
|
||||||
if c in '+-':
|
if c in '+-':
|
||||||
last = c
|
last = c
|
||||||
|
Loading…
x
Reference in New Issue
Block a user