Skip to content

Commit dd740a7

Browse files
committed
Improving expressiveness of parser --help
The patch adds a one-line description as it would appear behind the name of a yet non-existing man page. This is meant to eventually help auto-creating it.
1 parent 3619dd4 commit dd740a7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cwltool/cwltest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def run_test(args, i, t):
131131

132132

133133
def main():
134-
parser = argparse.ArgumentParser()
134+
parser = argparse.ArgumentParser(description='Compliance tests for cwltool')
135135
parser.add_argument("--test", type=str, help="YAML file describing test cases", required=True)
136136
parser.add_argument("--basedir", type=str, help="Basedir to use for tests", default=".")
137137
parser.add_argument("-n", type=int, default=None, help="Run a specific test")

cwltool/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
_logger.setLevel(logging.INFO)
3030

3131
def arg_parser():
32-
parser = argparse.ArgumentParser()
32+
parser = argparse.ArgumentParser(description='Reference executor for Common Workflow Language')
3333
parser.add_argument("--conformance-test", action="store_true")
3434
parser.add_argument("--basedir", type=str)
3535
parser.add_argument("--outdir", type=str, default=os.path.abspath('.'),

0 commit comments

Comments
 (0)