anordal / shellharden

The corrective bash syntax highlighter
Mozilla Public License 2.0
4.63k stars 130 forks source link

`--check` has to come first #22

Closed xyproto closed 6 years ago

xyproto commented 6 years ago

shellharden --check test.sh works one way, while shellharden test.sh --check has a different behavior.

Please close if this is intentional.

anordal commented 6 years ago

All options are like this – they only affect subsequent files. I should probably put this in the help text.

It is semi-intentional – I'm not against it. This way, you can for example --check one set of files and --syntax-suggest another (in a single invocation).