# HG changeset patch # User Oleg Oshmyan # Date 1266104453 0 # Node ID 06eef313aeaa67306628b8a4c46b25148233f755 # Parent cd4304ff1d1bfb633967dd42753b362a80b6791d -c command line option fixes diff -r cd4304ff1d1b -r 06eef313aeaa test.py --- a/test.py Fri Jan 22 20:16:07 2010 +0000 +++ b/test.py Sat Feb 13 23:40:53 2010 +0000 @@ -7,7 +7,7 @@ parser.add_option('-e', '--exclude', dest='exclude', action='append', help='test case number(s) to exclude, as a Python expression; multiple -e options can be supplied') parser.add_option('-c', '--cleanup', dest='clean', action='store_true', default=False, help='delete the copies of input/output files and exit') 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; delete the stored input/output files if the solution uses standard I/O and the -c/--cleanup option is specified') -parser.add_option('-m', '--copy-io', dest='copyonly', action='store_true', default=False, help='only create a copy of the input/output files of the last test case for manual testing; to delete them, use options -cs') +parser.add_option('-m', '--copy-io', dest='copyonly', action='store_true', default=False, help='only create a copy of the input/output files of the last test case for manual testing; to delete them, use options -cs or -cm') parser.add_option('-x', '--auto-exit', dest='pause', action='store_false', default=True, help='do not wait for a key to be pressed when finished testing') parser.add_option('-p', '--python', action='store_true', default=False, help='always parse all positional arguments as a single Python expression (including the first argument even if it names an executable file)') parser.add_option('-t', '--detect-time', dest='autotime', action='store_true', default=False, help='spend a second detecting the most precise time measurement function') @@ -470,7 +470,7 @@ ansname = ansname.replace('%', taskname) except NameError: ansname = taskname + '.ans' - else: + elif not stdio or tester or not options.erase: inname = inname.replace('%', taskname) outname = outname.replace('%', taskname) if tester: