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 --options parameter #50

Open
kobezzza opened this issue Sep 11, 2014 · 3 comments
Open

Add --options parameter #50

kobezzza opened this issue Sep 11, 2014 · 3 comments

Comments

@kobezzza
Copy link

#1

es6-transpiler ./myFile.es6 --options '{disallowUnknownReferences: false}' > ./myFile.js

#2

es6-transpiler ./myFile.es6 --options ./options.js > ./myFile.js
@raiden-dev
Copy link
Contributor

Better to follow the POSIX guidelines for command line arguments using some kind of getopt implementation.

@kobezzza
Copy link
Author

It does not matter, i'll be glad to any implementation.

https://github.com/visionmedia/commander.js - good module.

@termi
Copy link
Owner

termi commented Sep 12, 2014

I do not mind of the implementing this https://github.com/visionmedia/commander.js or https://github.com/davepacheco/node-getopt or something similar (but something slight and with a minimum count of dependencies). You are free to PR.
Also @kobezzza you are free to add something like 'beforeCompiling' and 'afterCompiling' callbacks.

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

3 participants