Skip to content

Command line arguments with spago run #865

@j-nava

Description

@j-nava

Now that Spago uses node -e for spago run, there's a disparity (when it comes to command line arguments) between running a Node app using spago run and directly with node after bundling.

When running with Node, the second argument is expected to be the path to the JavaScript file being executed. But when running with spago run, because of node -e, the second argument is omitted.

On one hand, that's how Node behaves, so technically this might not be considered an issue with Spago.

But I believe Spago should simulate the experience of running a Node app directly, so I propose that the file that is required when Spago runs node -e should be added to the command line arguments.

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