node-jslint icon indicating copy to clipboard operation
node-jslint copied to clipboard

Show meanings of flags on -h

Open mcandre opened this issue 10 years ago • 2 comments

As a command line user, I want to see a brief description of every flag, so that I can understand the flags better.

Just spit out the contents of https://github.com/reid/node-jslint/blob/master/doc/jslint.md on jslint -h.

mcandre avatar Feb 24 '15 16:02 mcandre

This is a good feature request. The chief difficulty is that the actual options accepted by node-jslint are a function of the --edition setting, and jslint as published doesn't offer a good way to programmatically extract its options.

There is a related PR around support for multiple jslint editions and extracting their valid options, which I can't look up right now.

For your purposes, would it be adequate to report the options supported by --edition latest, with a caveat re: different editions?

smikes avatar Feb 24 '15 17:02 smikes

Yes.

Honestly, even a link to the flag descriptions would be better than how it works now.

mcandre avatar Feb 24 '15 18:02 mcandre