Skip to content

Commit

Permalink
Merge pull request #5 from piccolo-orm/alias_help
Browse files Browse the repository at this point in the history
show aliases in help text for command
  • Loading branch information
dantownsend committed May 13, 2021
2 parents 88b2da6 + 8bc46ec commit 2ae2b32
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions targ/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,13 @@ def print_help(self):
print(self.arguments_description)
else:
print("No args")
print("")

def _convert_arg_type(self):
pass
if self.aliases:
print("Aliases")
print(get_underline(7, character="-"))
alias_string = ", ".join(self.aliases)
print(format_text(alias_string, color=Color.green))
print("")

def call_with(self, arg_class: Arguments):
"""
Expand Down

0 comments on commit 2ae2b32

Please sign in to comment.