Skip to content

Commit d140151

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cwltool/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1011,7 +1011,8 @@ 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+
addl = [x for x in c_opts if x != ""]
10151016
parser = arg_parser()
10161017
argcomplete.autocomplete(parser)
10171018
args = parser.parse_args(addl + argsl)

0 commit comments

Comments
 (0)