Cmds / Cmd: Add comments and debug logging

Add some comments and a little debug logging to clarify operation.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2025-02-02 14:01:21 +01:00
commit 859bb8000f
2 changed files with 8 additions and 1 deletions

View file

@ -49,5 +49,7 @@ class Cmd(ABC): # export
return
self.child_classes.append(cmd)
# To be overriden by derived class in case the command does take arguments.
# Will be called from App base class constructor and set up the parser hierarchy
def add_arguments(self, parser: ArgumentParser) -> None:
pass