diff --git a/plugin.py b/plugin.py index a79ef67..907304a 100644 --- a/plugin.py +++ b/plugin.py @@ -7,8 +7,10 @@ class CommandGroup: def __init__(self,f,default="help"): self.base = f self.subcmds = {} + self.subcmds_help = {} self.default = default - def command(self,name): + def command(self,name,help): + self.subcmds_help[name]=help def _register_subcmd(f): self.subcmds[name]=f return f