We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 772a11c commit 38203f3Copy full SHA for 38203f3
cwltool/main.py
@@ -1011,7 +1011,9 @@ def main(
1011
argsl = sys.argv[1:]
1012
addl = [] # type: List[str]
1013
if "CWLTOOL_OPTIONS" in os.environ:
1014
- addl = os.environ["CWLTOOL_OPTIONS"].split(" ")
+ c_opts = os.environ["CWLTOOL_OPTIONS"].split(" ")
1015
+ if len(c_opts) > 1 or c_opts[0] != "":
1016
+ addl = c_opts
1017
parser = arg_parser()
1018
argcomplete.autocomplete(parser)
1019
args = parser.parse_args(addl + argsl)
0 commit comments