26
26
27
27
def arg_parser () -> argparse .ArgumentParser :
28
28
parser = argparse .ArgumentParser (
29
- description = "Reference executor for Common Workflow Language standards."
29
+ description = "Reference executor for Common Workflow Language standards. "
30
+ "Not for production use."
30
31
)
31
32
parser .add_argument ("--basedir" , type = str )
32
33
parser .add_argument (
33
34
"--outdir" ,
34
35
type = str ,
35
36
default = os .path .abspath ("." ),
36
- help = "Output directory, default current directory" ,
37
+ help = "Output directory. The default is the current directory. " ,
37
38
)
38
39
39
40
parser .add_argument (
@@ -47,17 +48,18 @@ def arg_parser() -> argparse.ArgumentParser:
47
48
"--preserve-environment" ,
48
49
type = str ,
49
50
action = "append" ,
50
- help = "Preserve specific environment variable when "
51
- "running CommandLineTools. May be provided multiple "
52
- "times." ,
51
+ help = "Preserve specific environment variable when running "
52
+ "CommandLineTools without a software container . May be provided "
53
+ "multiple times. The default is to preserve only the PATH ." ,
53
54
metavar = "ENVVAR" ,
54
55
default = ["PATH" ],
55
56
dest = "preserve_environment" ,
56
57
)
57
58
envgroup .add_argument (
58
59
"--preserve-entire-environment" ,
59
60
action = "store_true" ,
60
- help = "Preserve all environment variable when running " "CommandLineTools." ,
61
+ help = "Preserve all environment variables when running CommandLineTools "
62
+ "without a software container." ,
61
63
default = False ,
62
64
dest = "preserve_entire_environment" ,
63
65
)
@@ -82,8 +84,8 @@ def arg_parser() -> argparse.ArgumentParser:
82
84
cidgroup = parser .add_argument_group (
83
85
"Options for recording the Docker container identifier into a file."
84
86
)
85
- # Disabled as containerid is now saved by default
86
87
cidgroup .add_argument (
88
+ # Disabled as containerid is now saved by default
87
89
"--record-container-id" ,
88
90
action = "store_true" ,
89
91
default = False ,
@@ -94,7 +96,7 @@ def arg_parser() -> argparse.ArgumentParser:
94
96
cidgroup .add_argument (
95
97
"--cidfile-dir" ,
96
98
type = str ,
97
- help = "Store the Docker " " container ID into a file in the specified directory." ,
99
+ help = "Store the Docker container ID into a file in the specified " " directory." ,
98
100
default = None ,
99
101
dest = "cidfile_dir" ,
100
102
)
@@ -134,7 +136,9 @@ def arg_parser() -> argparse.ArgumentParser:
134
136
"--cachedir" ,
135
137
type = str ,
136
138
default = "" ,
137
- help = "Directory to cache intermediate workflow outputs to avoid recomputing steps." ,
139
+ help = "Directory to cache intermediate workflow outputs to avoid "
140
+ "recomputing steps. Can be very helpful in the development and "
141
+ "troubleshooting of CWL documents." ,
138
142
)
139
143
140
144
exgroup = parser .add_mutually_exclusive_group ()
@@ -179,7 +183,8 @@ def arg_parser() -> argparse.ArgumentParser:
179
183
action = "store_const" ,
180
184
const = "copy" ,
181
185
default = "move" ,
182
- help = "Copy output files to the workflow output directory, don't delete intermediate output directories." ,
186
+ help = "Copy output files to the workflow output directory and don't "
187
+ "delete intermediate output directories." ,
183
188
dest = "move_outputs" ,
184
189
)
185
190
@@ -202,19 +207,21 @@ def arg_parser() -> argparse.ArgumentParser:
202
207
203
208
parser .add_argument (
204
209
"--rdf-serializer" ,
205
- help = "Output RDF serialization format used by --print-rdf (one of turtle (default), n3, nt, xml)" ,
210
+ help = "Output RDF serialization format used by --print-rdf (one of "
211
+ "turtle (default), n3, nt, xml)" ,
206
212
default = "turtle" ,
207
213
)
208
214
209
215
parser .add_argument (
210
216
"--eval-timeout" ,
211
- help = "Time to wait for a Javascript expression to evaluate before giving an error, default 20s." ,
217
+ help = "Time to wait for a Javascript expression to evaluate before giving "
218
+ "an error, default 20s." ,
212
219
type = float ,
213
220
default = 20 ,
214
221
)
215
222
216
223
provgroup = parser .add_argument_group (
217
- "Options for recording provenance " " information of the execution"
224
+ "Options for recording provenance information of the execution"
218
225
)
219
226
provgroup .add_argument (
220
227
"--provenance" ,
@@ -316,7 +323,8 @@ def arg_parser() -> argparse.ArgumentParser:
316
323
exgroup .add_argument (
317
324
"--print-subgraph" ,
318
325
action = "store_true" ,
319
- help = "Print workflow subgraph that will execute " "(can combine with --target)" ,
326
+ help = "Print workflow subgraph that will execute. Can combined with "
327
+ "--target." ,
320
328
)
321
329
exgroup .add_argument (
322
330
"--print-targets" , action = "store_true" , help = "Print targets (output parameters)"
@@ -381,7 +389,7 @@ def arg_parser() -> argparse.ArgumentParser:
381
389
parser .add_argument (
382
390
"--timestamps" ,
383
391
action = "store_true" ,
384
- help = "Add " " timestamps to the errors, warnings, and " " notifications." ,
392
+ help = "Add timestamps to the errors, warnings, and notifications." ,
385
393
)
386
394
parser .add_argument (
387
395
"--js-console" , action = "store_true" , help = "Enable javascript console output"
@@ -394,7 +402,7 @@ def arg_parser() -> argparse.ArgumentParser:
394
402
parser .add_argument (
395
403
"--js-hint-options-file" ,
396
404
type = str ,
397
- help = "File of options to pass to jshint."
405
+ help = "File of options to pass to jshint. "
398
406
'This includes the added option "includewarnings". ' ,
399
407
)
400
408
dockergroup = parser .add_mutually_exclusive_group ()
@@ -438,11 +446,14 @@ def arg_parser() -> argparse.ArgumentParser:
438
446
conda_dependencies = argparse .SUPPRESS
439
447
440
448
if SOFTWARE_REQUIREMENTS_ENABLED :
441
- dependency_resolvers_configuration_help = "Dependency resolver configuration file describing how to adapt 'SoftwareRequirement' packages to current system."
449
+ dependency_resolvers_configuration_help = "Dependency resolver "
450
+ "configuration file describing how to adapt 'SoftwareRequirement' "
451
+ "packages to current system."
442
452
dependencies_directory_help = (
443
453
"Defaut root directory used by dependency resolvers configuration."
444
454
)
445
- use_biocontainers_help = "Use biocontainers for tools without an explicitly annotated Docker container."
455
+ use_biocontainers_help = "Use biocontainers for tools without an "
456
+ "explicitly annotated Docker container."
446
457
conda_dependencies = (
447
458
"Short cut to use Conda to resolve 'SoftwareRequirement' packages."
448
459
)
@@ -483,14 +494,15 @@ def arg_parser() -> argparse.ArgumentParser:
483
494
parser .add_argument (
484
495
"--enable-dev" ,
485
496
action = "store_true" ,
486
- help = "Enable loading and running development versions " "of CWL spec." ,
497
+ help = "Enable loading and running unofficial development versions of "
498
+ "the CWL standards." ,
487
499
default = False ,
488
500
)
489
501
490
502
parser .add_argument (
491
503
"--enable-ext" ,
492
504
action = "store_true" ,
493
- help = "Enable loading and running cwltool extensions " " to CWL spec ." ,
505
+ help = "Enable loading and running ' cwltool:' extensions to the CWL standards ." ,
494
506
default = False ,
495
507
)
496
508
@@ -511,7 +523,8 @@ def arg_parser() -> argparse.ArgumentParser:
511
523
512
524
parser .add_argument (
513
525
"--default-container" ,
514
- help = "Specify a default docker container that will be used if the workflow fails to specify one." ,
526
+ help = "Specify a default software container to use for any "
527
+ "CommandLineTool without a DockerRequirement." ,
515
528
)
516
529
parser .add_argument (
517
530
"--no-match-user" ,
@@ -521,8 +534,8 @@ def arg_parser() -> argparse.ArgumentParser:
521
534
parser .add_argument (
522
535
"--custom-net" ,
523
536
type = str ,
524
- help = "Passed to `docker run` as the '--net' "
525
- "parameter when NetworkAccess is true." ,
537
+ help = "Passed to `docker run` as the '--net' parameter when "
538
+ "NetworkAccess is true, which is its default setting ." ,
526
539
)
527
540
parser .add_argument (
528
541
"--disable-validate" ,
@@ -536,14 +549,14 @@ def arg_parser() -> argparse.ArgumentParser:
536
549
exgroup .add_argument (
537
550
"--enable-ga4gh-tool-registry" ,
538
551
action = "store_true" ,
539
- help = "Enable resolution using GA4GH tool registry API" ,
552
+ help = "Enable tool resolution using GA4GH tool registry API" ,
540
553
dest = "enable_ga4gh_tool_registry" ,
541
554
default = True ,
542
555
)
543
556
exgroup .add_argument (
544
557
"--disable-ga4gh-tool-registry" ,
545
558
action = "store_false" ,
546
- help = "Disable resolution using GA4GH tool registry API" ,
559
+ help = "Disable tool resolution using GA4GH tool registry API" ,
547
560
dest = "enable_ga4gh_tool_registry" ,
548
561
default = True ,
549
562
)
@@ -559,8 +572,9 @@ def arg_parser() -> argparse.ArgumentParser:
559
572
560
573
parser .add_argument (
561
574
"--on-error" ,
562
- help = "Desired workflow behavior when a step fails. One of 'stop' (do not submit any more steps) or "
563
- "'continue' (may submit other steps that are not downstream from the error). Default is 'stop'." ,
575
+ help = "Desired workflow behavior when a step fails. One of 'stop' (do "
576
+ "not submit any more steps) or 'continue' (may submit other steps that "
577
+ "are not downstream from the error). Default is 'stop'." ,
564
578
default = "stop" ,
565
579
choices = ("stop" , "continue" ),
566
580
)
@@ -596,14 +610,14 @@ def arg_parser() -> argparse.ArgumentParser:
596
610
"--force-docker-pull" ,
597
611
action = "store_true" ,
598
612
default = False ,
599
- help = "Pull latest docker image even if" " it is locally present" ,
613
+ help = "Pull latest software container image even if it is locally present" ,
600
614
dest = "force_docker_pull" ,
601
615
)
602
616
parser .add_argument (
603
617
"--no-read-only" ,
604
618
action = "store_true" ,
605
619
default = False ,
606
- help = "Do not set root directory in the" " container as read-only" ,
620
+ help = "Do not set root directory in the container as read-only" ,
607
621
dest = "no_read_only" ,
608
622
)
609
623
@@ -618,17 +632,17 @@ def arg_parser() -> argparse.ArgumentParser:
618
632
"--target" ,
619
633
"-t" ,
620
634
action = "append" ,
621
- help = "Only execute steps that contribute to "
622
- "listed targets (can provide more than once)." ,
635
+ help = "Only execute steps that contribute to listed targets (can be "
636
+ "provided more than once)." ,
623
637
)
624
638
625
639
parser .add_argument (
626
640
"--mpi-config-file" ,
627
641
type = str ,
628
642
default = None ,
629
- help = "Platform specific configuration for MPI (parallel "
630
- "launcher, its flag etc). See README section 'Running MPI-"
631
- "based tools' for details of the format." ,
643
+ help = "Platform specific configuration for MPI (parallel launcher, its "
644
+ "flag etc). See README section 'Running MPI-based tools' for details "
645
+ "of the format." ,
632
646
)
633
647
634
648
parser .add_argument (
@@ -640,7 +654,7 @@ def arg_parser() -> argparse.ArgumentParser:
640
654
help = "path or URL to a CWL Workflow, "
641
655
"CommandLineTool, or ExpressionTool. If the `inputs_object` has a "
642
656
"`cwl:tool` field indicating the path or URL to the cwl_document, "
643
- " then the `workflow ` argument is optional." ,
657
+ " then the `cwl_document ` argument is optional." ,
644
658
)
645
659
parser .add_argument (
646
660
"job_order" ,
0 commit comments