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

Command line argument taken over supplied function parameter in script #27

Open
germansokolov13 opened this issue Oct 5, 2017 · 0 comments

Comments

@germansokolov13
Copy link

germansokolov13 commented Oct 5, 2017

I wrote a node.js script to use for running db-migrate commands. Here is the source:
https://pastebin.com/dHkwJnE1
I run it as
node migrate-script.js create my_migration
It works but migration ends up being called create and not my_migration
It seems that it will ignore function parameter and take just the first command line argument.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

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

1 participant