medpy.utilities.argparseu.sequenceOfIntegers#

medpy.utilities.argparseu.sequenceOfIntegers(string)[source]#

A custom type for the argparse commandline parser. Accepts only colon-separated lists of valid integer values.

Examples

>>> parser.add_argument('argname', type=sequenceOfIntegers, help='help')