I was going through some argparse
code when I saw this. I have used argparse
to create command line tools in the past but never came across this. I cannot find its documentation either.
What are action groups
and why do we use them?
parser = argparse.ArgumentParser()
parser._action_groups.pop()