Skip to content

Commit 38203f3

Browse files
committed
CWLTOOL_OPTIONS: ignore an empty string
1 parent 772a11c commit 38203f3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cwltool/main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1011,7 +1011,9 @@ def main(
10111011
argsl = sys.argv[1:]
10121012
addl = [] # type: List[str]
10131013
if "CWLTOOL_OPTIONS" in os.environ:
1014-
addl = os.environ["CWLTOOL_OPTIONS"].split(" ")
1014+
c_opts = os.environ["CWLTOOL_OPTIONS"].split(" ")
1015+
if len(c_opts) > 1 or c_opts[0] != "":
1016+
addl = c_opts
10151017
parser = arg_parser()
10161018
argcomplete.autocomplete(parser)
10171019
args = parser.parse_args(addl + argsl)

0 commit comments

Comments
 (0)