medpy.utilities.argparseu.sequenceOfIntegersGeAscendingStrict#
- medpy.utilities.argparseu.sequenceOfIntegersGeAscendingStrict(string)[source]#
A custom type for the argparse commandline parser. Accepts only colon-separated lists of valid integer values that are greater than or equal to 0 and in ascending order.
Examples
>>> parser.add_argument('argname', type=sequenceOfIntegersGeAscending, help='help')