Commit graph

2 commits

Author SHA1 Message Date
d2ec56336e ArgsContainer: Add add_argument() function
add_argument() at the face of it looks much like
ArgumentParser.add_argument(), but is a function, not a class method.
It takes the ArgsContainer|ArgParser instance as first argument, then
decides what type it is, and proceeds to use this knowledge to decide
whether or not the argument to be added already has a definition.

Signed-off-by: Jan Lindemann <jan@janware.com>
2025-06-04 04:55:32 +02:00
51f08d3dce ArgsContainer: Add class
ArgsContainer provides an interface similar to
argparse.ArgumentParser and can be used as a drop-in replacement when
fishing for arguments.

Signed-off-by: Jan Lindemann <jan@janware.com>
2025-05-16 06:52:45 +02:00