Skip to content

Commit

Permalink
miniwdl check: add back --no-shellcheck for compatibility (hidden)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlin committed Jan 20, 2021
1 parent d95b04b commit 1a34833
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions WDL/CLI.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,13 @@ def fill_check_subparser(subparsers):
action="store_true",
help="show warnings even if they have inline suppression comments",
)
check_parser.add_argument(
# old option maintained for backwards-compatibility
"--no-shellcheck",
dest="shellcheck",
action="store_false",
help=SUPPRESS,
)
return check_parser


Expand All @@ -207,11 +214,14 @@ def check(
strict=False,
show_all=False,
suppress=None,
shellcheck=True,
**kwargs,
):
from . import Lint

suppress = set(suppress.split(",")) if suppress else set()
if not shellcheck:
suppress.add("CommandShellCheck")

# Load the document (read, parse, and typecheck)
if "CommandShellCheck" in suppress:
Expand Down

0 comments on commit 1a34833

Please sign in to comment.