Mercurial > ~astiob > upreckon > hgweb
comparison upreckon/upreckon-vcs @ 252:756dacca888a
Added '[test cases]' to the usage help message
author | Oleg Oshmyan <chortos@inbox.lv> |
---|---|
date | Sun, 19 Jan 2014 01:32:21 +0000 |
parents | cf7dd3f46e89 |
children |
comparison
equal
deleted
inserted
replaced
251:d3a5d1929ad2 | 252:756dacca888a |
---|---|
1 #! /usr/bin/env python | 1 #! /usr/bin/env python |
2 # Copyright (c) 2009-2011 Chortos-2 <chortos@inbox.lv> | 2 # Copyright (c) 2009-2014 Chortos-2 <chortos@inbox.lv> |
3 | 3 |
4 from __future__ import division, with_statement | 4 from __future__ import division, with_statement |
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.05.0 ($$REV$$)', epilog='Python 2.6 or newer is required.') | 10 parser = optparse.OptionParser(version='Upreckon 2.05.0 ($$REV$$)', usage='Usage: %prog [options] [test cases]', 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('-c', '--cleanup', dest='cleanup', action='store_true', default=False, help='delete the copies of input/output files and exit') | 14 parser.add_option('-c', '--cleanup', dest='cleanup', action='store_true', default=False, help='delete the copies of input/output files and exit') |
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') | 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') |