Fixed a parameter splitting bug that prevented help command from working and could have lead to rm disaster
This commit is contained in:
parent
2e647c6b41
commit
24d801d18a
|
@ -166,6 +166,8 @@ class BaseCommand(object):
|
|||
result = re.split(r"(?<!\\) ", text)
|
||||
for i, s in enumerate(result):
|
||||
result[i] = s.replace(r'\ ', ' ')
|
||||
if result == ['']:
|
||||
result = []
|
||||
return result
|
||||
|
||||
def create_parser(self):
|
||||
|
|
Loading…
Reference in New Issue