Fix exception when running subcommand without enough arguments

This commit is contained in:
Tulir Asokan 2020-03-25 21:26:17 +02:00
parent 6a74a360ca
commit aac1f267d7

View File

@ -164,7 +164,8 @@ class CommandHandler:
@property @property
def __mb_prefix__(self) -> str: def __mb_prefix__(self) -> str:
if self.__mb_parent__: if self.__mb_parent__:
return f"{self.__mb_parent__.__mb_prefix__} {self.__mb_name__}" return (f"!{self.__mb_parent__.__mb_get_name__(self.__bound_instance__)} "
f"{self.__mb_name__}")
return f"!{self.__mb_name__}" return f"!{self.__mb_name__}"
@property @property