You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
user% j2lint blah.j2 -i 'single-space-decorator'
JINJA2 LINT ERRORS
************ File blah.j2
blah.j2:1 Jinja statement should have a single space before and after: '{% statement %}' (jinja-statements-single-space)
Jinja2 linting finished with 1 issue(s) and 0 warning(s)
This is because -i is an nargs
Note that this would work:
j2lint -i 'single-space-decorator' -- blah.j2
probably worth at minimu mentioning it in the README.md
The text was updated successfully, but these errors were encountered:
So this is actually expected because of the way we use nargs=* in argparse. this should be documented and maybe one day the behavior changed.
gmuloc
changed the title
Bug: j2lint CLI fails when passing FILE(s) after -i flag
Doc: j2lint CLI fails when passing FILE(s) after -i flag
Jan 26, 2023
vs
This is because
-i
is annargs
Note that this would work:
probably worth at minimu mentioning it in the README.md
The text was updated successfully, but these errors were encountered: