Skip to content

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

@germansokolov13

Description

@germansokolov13

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions