Update command.py
This commit is contained in:
parent
6df389c564
commit
1b4f5c585d
1 changed files with 2 additions and 2 deletions
|
@ -60,7 +60,7 @@ class CommandParser:
|
||||||
if split not in [command_prefix_first + self.bind_prefix, self.bind_prefix]:
|
if split not in [command_prefix_first + self.bind_prefix, self.bind_prefix]:
|
||||||
x = f'{command_prefix_first}{self.bind_prefix} {x}'
|
x = f'{command_prefix_first}{self.bind_prefix} {x}'
|
||||||
arglst_raw.append(x)
|
arglst_raw.append(x)
|
||||||
match_detail_help = re.match('(.*){.*}$', x)
|
match_detail_help = re.match('(.*){.*}$', x, re.M)
|
||||||
if match_detail_help:
|
if match_detail_help:
|
||||||
x = match_detail_help.group(1)
|
x = match_detail_help.group(1)
|
||||||
arglst.append(x)
|
arglst.append(x)
|
||||||
|
@ -78,7 +78,7 @@ class CommandParser:
|
||||||
for x in args_raw:
|
for x in args_raw:
|
||||||
if x[0] not in command_prefix:
|
if x[0] not in command_prefix:
|
||||||
x = command_prefix_first + x
|
x = command_prefix_first + x
|
||||||
match_detail_help = re.match('(.*){(.*)}$', x)
|
match_detail_help = re.match('(.*){(.*)}$', x, re.M)
|
||||||
if match_detail_help:
|
if match_detail_help:
|
||||||
x = f'{match_detail_help.group(1)}- {match_detail_help.group(2)}'
|
x = f'{match_detail_help.group(1)}- {match_detail_help.group(2)}'
|
||||||
arglst.append(x)
|
arglst.append(x)
|
||||||
|
|
Reference in a new issue