Skip to content

Commit

Permalink
CWLTOOL_OPTIONS: ignore an empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Sep 2, 2022
1 parent 772a11c commit d140151
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cwltool/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,8 @@ def main(
argsl = sys.argv[1:]
addl = [] # type: List[str]
if "CWLTOOL_OPTIONS" in os.environ:
addl = os.environ["CWLTOOL_OPTIONS"].split(" ")
c_opts = os.environ["CWLTOOL_OPTIONS"].split(" ")
addl = [x for x in c_opts if x != ""]
parser = arg_parser()
argcomplete.autocomplete(parser)
args = parser.parse_args(addl + argsl)
Expand Down

0 comments on commit d140151

Please sign in to comment.