The missing electron argument

I have an e-app that, when packaged, will remove the first argument after the name of the executable.

For example, the command launcher.exe a b c

fills in process.argv

from main.js and require('electron').remote.process.argv

from the console:

[
    "C:\Users\me\AppData\Local\launcher\app-0.0.7\launcher.exe",
    "b",
    "c"
]

      

Where did it go a

? What for? How do I get it back? And why does this only happen after the application is packaged?

Edit: This issue occurs when I run the launch from "C: \ Users \ me \ AppData \ Local \ launcher \ launcher.exe" but not when I run it from "C: \ Users \ me \ AppData \ Local \ launcher \ application-0.0.7 \ launcher.exe ". Perhaps this is due to the electronic update.

+3
javascript command-line-arguments electron electron-packager


source to share


No one has answered this question yet

Check out similar questions:

2237
How do I pass command line arguments to a Node.js program?
898
How to pass command line arguments to rake command
733
Best way to parse command line arguments in C #?
523
Spread all arguments in bash shell script
2
Passing command line arguments to an electronic executable (after installing an already packaged application)
1
How does the packed electron application use child_process?
1
Small problem with electronic wrapper and NightmareJS
0
The packing electron produces a blank page with no content
0
how to run electronic binary in command line terminal (vty)
0
How do I tell the electronic wrapper to use my custom electron config file?



All Articles
Loading...
X
Show
Funny
Dev
Pics