parser.add_argument("build_path",nargs="*",default=["."],help="Path to build directory (should contain CMakeCache.txt, default is current) or to directory with tests (all platform checks will be disabled in this case)")
parser.add_argument("build_path",nargs='?',default=".",help="Path to build directory (should contain CMakeCache.txt, default is current) or to directory with tests (all platform checks will be disabled in this case)")
parser.add_argument("-t","--tests",metavar="MODULES",default="",help="Comma-separated list of modules to test (example: -t core,imgproc,java)")
parser.add_argument("-b","--blacklist",metavar="MODULES",default="",help="Comma-separated list of modules to exclude from test (example: -b java)")
parser.add_argument("-a","--accuracy",action="store_true",default=False,help="Look for accuracy tests instead of performance tests")
parser.add_argument("--check",action="store_true",default=False,help="Shortcut for '--perf_min_samples=1 --perf_force_samples=1'")
parser.add_argument("-w","--cwd",metavar="PATH",default=".",help="Working directory for tests (default is current)")
parser.add_argument("-l","--longname",action="store_true",default=False,help="Generate log files with long names")
parser.add_argument("--list",action="store_true",default=False,help="List available tests (executables)")
parser.add_argument("--list_short",action="store_true",default=False,help="List available tests (aliases)")
parser.add_argument("--list_short_main",action="store_true",default=False,help="List available tests (main repository, aliases)")