Skip to content

Commit

Permalink
no help property
Browse files Browse the repository at this point in the history
  • Loading branch information
HugeBrain16 committed Jul 31, 2021
1 parent 960fc5a commit aeb04f3
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions cmdtools/ext/command.py
Expand Up @@ -56,12 +56,6 @@ def __init__(self, object_, name: str = None):
# if no preset name, use command file name as the command name
self.name = getattr(self.object, "name", name) # type: str

@property
def help(self) -> str:
return getattr(
self.object, "_help", None # avoid calling built in function 'help'
)

@property
def callback(self):
return getattr(self.object, self.name, None)
Expand Down

0 comments on commit aeb04f3

Please sign in to comment.