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 38203f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cwltool/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,9 @@ 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(" ")
if len(c_opts) > 1 or c_opts[0] != "":
addl = c_opts
parser = arg_parser()
argcomplete.autocomplete(parser)
args = parser.parse_args(addl + argsl)
Expand Down

0 comments on commit 38203f3

Please sign in to comment.