Re: [Tutor] using ranges with argparse()

2013-01-28 Thread Peter Otten
Kurt Lieber wrote: > Hi -- brand new to python, but trying to write a simple script that takes > command line arguments. One of the arguments needs to test if a value is > a) > an integer and b) within a stated range. I currently have: > > parser.add_argument("-f", "--floor", default=6000, help=

[Tutor] using ranges with argparse()

2013-01-27 Thread Kurt Lieber
Hi -- brand new to python, but trying to write a simple script that takes command line arguments. One of the arguments needs to test if a value is a) an integer and b) within a stated range. I currently have: parser.add_argument("-f", "--floor", default=6000, help="floor is the minimum amount of