mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-python
synced 2026-01-15 09:53:32 +01:00
3 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 862a5dbc95 | |||
| d2ec56336e | |||
| 51f08d3dce |
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
| 862a5dbc95 |
ArgsContainer.specified_args: Add property
ArgsContainer.specified_args is a list of arguments that were explicitly specified, i.e. not defaults, in the order they were specified in. Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| 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> |
|||
| 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> |