Re: Need some help with argparse

2017-10-03 Thread Ben Finney
Kryptxy via Python-list writes: > I have a group of arguments, say: (-a, -b, -c, -d, -e) [lets call it group1] > I have another group, say: (-z, -y, -x, -w) [lets call it group2] Argument groups are a feature to control the help output from the parser: When an argument is added to the grou

Need some help with argparse

2017-10-03 Thread Kryptxy via Python-list
Hi, I am trying to figure out something with argparse. Here is a scenario: I have a group of arguments, say: (-a, -b, -c, -d, -e) [lets call it group1] I have another group, say: (-z, -y, -x, -w) [lets call it group2] Code: import argparse parser = argparse.ArgumentParser(description="Test this s