Fixed a parameter splitting bug that prevented help command from working and could have lead to rm disaster

This commit is contained in:
Asmageddon 2012-05-28 21:01:38 +02:00
parent 2e647c6b41
commit 24d801d18a
1 changed files with 2 additions and 0 deletions

View File

@ -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):