[gegl] Add usage help to run-compositions.py
- From: Daniel Sabo <daniels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] Add usage help to run-compositions.py
- Date: Sat, 2 Nov 2013 23:37:15 +0000 (UTC)
commit 08155c5d08e88088629c60cb642c1c6b1a4a3e33
Author: Daniel Sabo <DanielSabo gmail com>
Date: Sat Nov 2 15:39:29 2013 -0700
Add usage help to run-compositions.py
tests/compositions/run-compositions.py | 17 +++++++++++------
1 files changed, 11 insertions(+), 6 deletions(-)
---
diff --git a/tests/compositions/run-compositions.py b/tests/compositions/run-compositions.py
index 2e726ae..f49db54 100755
--- a/tests/compositions/run-compositions.py
+++ b/tests/compositions/run-compositions.py
@@ -131,13 +131,17 @@ class Context():
def main():
parser = argparse.ArgumentParser()
parser.add_argument("--without-opencl",
- action="store_true")
- parser.add_argument("--xml-dir")
- parser.add_argument("--build-dir")
- parser.add_argument("--src-dir")
+ action="store_true",
+ help="disable OpenCL when running tests")
+ parser.add_argument("--xml-dir",
+ help="path to the composition xml files")
+ parser.add_argument("--build-dir",
+ help="path to the top build directory")
+ parser.add_argument("--src-dir",
+ help="path to the top source directory")
parser.add_argument("FILES",
- nargs="*")
-# Use argparse to set --without-opencl --output-dir= --build-dir= --verbose
+ nargs="*",
+ help="the composition xml files to run")
args = parser.parse_args()
@@ -154,6 +158,7 @@ def main():
tests = args.FILES
if not tests:
+ parser.print_help()
sys.exit(0)
context.prep()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]