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

_node improperly parsing command arguments #297

Closed
aikar opened this issue Nov 4, 2015 · 1 comment
Closed

_node improperly parsing command arguments #297

aikar opened this issue Nov 4, 2015 · 1 comment
Assignees
Labels

Comments

@aikar
Copy link
Contributor

aikar commented Nov 4, 2015

I'm using _node in a shebang to create scripts, and doing this:

!/usr/bin/env _node

console.log(process.argv)

However, _node is parsing the command arguments as if it was arguments to the streamline process...

_node should not be looking for streamline flags, as it blocks users from passing their own flags to the app.

So passing myapp -o gives
[STREAMLINE] obsolete option: -o, use -d or --out-dir instead

But I was intending for MY code to get the -o.

Didn't these commands use to be apart of a sep binary? I was using a really old version of streamline before, and this new everything-in-_node is really removing a core use of _node.

@bjouhier
Copy link
Member

bjouhier commented Nov 4, 2015

@aikar That's a bug. I switched to commander for command line parsing in 1.0 and I did not anticipate this. I will fix it. Anything that follows the module name should be passed verbatim to the program.

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

No branches or pull requests

2 participants