comparison upreckon/upreckon-vcs @ 211:78be952f6b40

Changed the help message to say Python 2.6 is required Change back when full Python 2.5 support is implemented.
author Oleg Oshmyan <chortos@inbox.lv>
date Thu, 18 Aug 2011 15:31:17 +0300
parents 8c4e92fb32d8
children 1cbe2c428942
comparison
equal deleted inserted replaced
210:8c4e92fb32d8 211:78be952f6b40
5 import optparse 5 import optparse
6 6
7 from upreckon import compat 7 from upreckon import compat
8 from upreckon.compat import * 8 from upreckon.compat import *
9 9
10 version = '2.03.0 ($$REV$$)' 10 parser = optparse.OptionParser(version='Upreckon 2.03.0 ($$REV$$)', epilog='Python 2.6 or newer is required.')
11 parser = optparse.OptionParser(version='Upreckon '+version, epilog='Python 2.5 or newer is required.')
12 parser.add_option('-1', dest='legacy', action='store_true', default=False, help='handle configuration files in a way more compatible with test.py 1.x') 11 parser.add_option('-1', dest='legacy', action='store_true', default=False, help='handle configuration files in a way more compatible with test.py 1.x')
13 parser.add_option('-p', '--problem', dest='problems', metavar='PROBLEM', action='append', help='test only the PROBLEM (this option can be specified more than once with different problem names, all of which will be tested)') 12 parser.add_option('-p', '--problem', dest='problems', metavar='PROBLEM', action='append', help='test only the PROBLEM (this option can be specified more than once with different problem names, all of which will be tested)')
14 parser.add_option('--list-problems', action='store_true', default=False, help='just list all problem names') 13 parser.add_option('--list-problems', action='store_true', default=False, help='just list all problem names')
15 parser.add_option('-m', '--copy-io', dest='copyonly', action='store_true', default=False, help='create a copy of the input/output files of the last test case for manual testing and exit') 14 parser.add_option('-m', '--copy-io', dest='copyonly', action='store_true', default=False, help='create a copy of the input/output files of the last test case for manual testing and exit')
16 parser.add_option('-x', '--auto-exit', dest='pause', action='store_false', default=True, help='do not wait for a key to be pressed after finishing testing') 15 parser.add_option('-x', '--auto-exit', dest='pause', action='store_false', default=True, help='do not wait for a key to be pressed after finishing testing')