comparison upreckon/upreckon-vcs @ 216:b40e76b8e8b2 2.03

Restored $$REV$$ in the version number
author Oleg Oshmyan <chortos@inbox.lv>
date Thu, 18 Aug 2011 23:15:14 +0300
parents ad4362bf9858
children fbdea5b8cc68
comparison
equal deleted inserted replaced
214:80dfebb41ec4 216:b40e76b8e8b2
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 parser = optparse.OptionParser(version='Upreckon 2.03.0', epilog='Python 2.6 or newer is required.') 10 parser = optparse.OptionParser(version='Upreckon 2.03.0 ($$REV$$)', epilog='Python 2.6 or newer is required.')
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') 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')
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)') 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)')
13 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')
14 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') 14 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('-s', '--save-io', dest='erase', action='store_false', default=True, help='do not delete the copies of input/output files after the last test case; create copies of input files and store output in files even if the solution uses standard I/O') 15 parser.add_option('-s', '--save-io', dest='erase', action='store_false', default=True, help='do not delete the copies of input/output files after the last test case; create copies of input files and store output in files even if the solution uses standard I/O')