Skip to content

Commit

Permalink
Fixed command match when name is provided with parenthesis.
Browse files Browse the repository at this point in the history
Maching agains commands and not name.

Fixes: candango#250
  • Loading branch information
piraz committed Dec 21, 2018
1 parent 4b016ac commit fdad9b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firenado/management/management.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def get_command_header(parser, usage_message="", usage=False):
firenado.conf.ROOT, 'management', 'templates', 'help'))
return loader.load("header.txt").generate(
parser=parser, usage_message=usage_message, usage=usage,
firenado_version=".".join(map(str,firenado.__version__))).decode(
firenado_version=".".join(map(str, firenado.__version__))).decode(
sys.stdout.encoding)


Expand Down Expand Up @@ -161,7 +161,7 @@ def get_help(self):
return self.help

def match(self, command):
return command in self.name
return command in self.commands

def run(self, args):
has_sub_commands = False
Expand Down

0 comments on commit fdad9b7

Please sign in to comment.