Skip to content

Hint to Electron developers? #43

@datenreisender

Description

@datenreisender

README.md contains the example require('minimist')(process.argv.slice(2));.

That, of course, is correct for the many people developing plain node applications.

But on Electron (which is a big platform) developers need to be a bit careful because there it depends on how the app is ran to determine how many arguments to slice off. There (but only there!) something likerequire('minimist')(process.argv.slice(process.defaultApp ? 2 : 1)); would be wise to use.

Should this be mentioned?

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