mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 06:03:15 +08:00
Fixing help messages
--help message and starting run.py w/o parameters generate different messages E. g. w/ and w/o build_path in the end build_path is required, removing square brackets
This commit is contained in:
parent
864b4e3b26
commit
1f04f9d63b
@ -854,7 +854,7 @@ if __name__ == "__main__":
|
||||
test_args = [a for a in sys.argv if a.startswith("--perf_") or a.startswith("--gtest_")]
|
||||
argv = [a for a in sys.argv if not(a.startswith("--perf_") or a.startswith("--gtest_"))]
|
||||
|
||||
parser = OptionParser()
|
||||
parser = OptionParser(usage="run.py [options] build_path")
|
||||
parser.add_option("-t", "--tests", dest="tests", help="comma-separated list of modules to test", metavar="SUITS", default="")
|
||||
parser.add_option("-w", "--cwd", dest="cwd", help="working directory for tests", metavar="PATH", default=".")
|
||||
parser.add_option("-a", "--accuracy", dest="accuracy", help="look for accuracy tests instead of performance tests", action="store_true", default=False)
|
||||
@ -879,7 +879,7 @@ if __name__ == "__main__":
|
||||
run_args = getRunArgs(args[1:] or ['.'])
|
||||
|
||||
if len(run_args) == 0:
|
||||
print >> sys.stderr, "Usage:", os.path.basename(sys.argv[0]), "[options] [build_path]"
|
||||
print >> sys.stderr, "Usage:", os.path.basename(sys.argv[0]), "[options] build_path"
|
||||
exit(1)
|
||||
|
||||
options.android_env = {}
|
||||
|
Loading…
Reference in New Issue
Block a user