Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add secret options to usage hint #159

Open
mk-pmb opened this issue Aug 3, 2016 · 4 comments
Open

Add secret options to usage hint #159

mk-pmb opened this issue Aug 3, 2016 · 4 comments

Comments

@mk-pmb
Copy link

mk-pmb commented Aug 3, 2016

From browsing the issues, I leaned that I'll want --fudge and --es6 from now on, so I'd like my wrapper script to be able to detect their availability. Could you add them to the usage hint?

$ jslint --help 2>&1 | grep -oPe '\[--(f|es)\S+'
[--es5]
[--filter]
[--forin]
$ jslint --version
node-jslint version: 0.10.1  JSLint edition 2013-08-26
@smikes
Copy link
Collaborator

smikes commented Jul 18, 2017

I think you need

jslint --edition=es6 --fudge

@mk-pmb
Copy link
Author

mk-pmb commented Jul 18, 2017

Yes, but only in versions that support --fudge. Those versions shall advertize their support for --fudge in their --help options list, so my wrappper can detect whether it's supported.

PS: In case you meant --help instead of --fudge, I just tried that, output doesn't contain "fudge":

$ jslint --edition=es6 --help |& grep fud
$ nodever jslint
require('jslint/package.json').version = 0.11.0

@smikes
Copy link
Collaborator

smikes commented Jul 18, 2017

Are you sure you want to consume the interface that we provide here? If you're programmatically using Doug Crockford's jslint interface -- https://github.com/douglascrockford/jslint -- then you don't have to work around me :-)

@mk-pmb
Copy link
Author

mk-pmb commented Jul 18, 2017

In my case I like the CLI more, because the wrapper script is written in bash and aggregates output from other linters (e.g. PHP syntax check) as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants