Avoid the double dash when passing command line arguments to the app
See original GitHub issueI noticed that once the app is packaged, command line arguments must be passed after a double dash: $ ./myApp -- --arg1 --arg2
On Windows, I even noticed that you need to add it twice: $ ./myApp.exe -- -- --arg1 --arg2
Is there a way to avoid this behaviour in order to use a simple $ ./myApp --arg1 --arg2
instead?
Which version of electron-packager are you using?
"electron-packager": "^5.2.1"
What CLI arguments are you passing? Alternatively, if you are using the API, what parameters are you passing to the
packager()
function?
Please see: https://github.com/brrd/Abricotine/blob/845b4016bda252ea6f58846c63cf7529c169314b/scripts/packager.js#L42
What version of Electron are you building with?
"electron-prebuilt": "^0.35.0"
What is the host platform are you running electron-packager on?
Linux Ubuntu 12.04 64 bit and Windows 7 64 bits. I could not try it on OS X.
What target platform(s)/architecture(s) are you building for?
Same as above.
Is there a stack trace in the error message you’re seeing?
None.
Please provide either a failing testcase or detailed steps to reproduce your problem.
Download one of the provided binaries: https://github.com/brrd/Abricotine/releases/tag/0.2.2
And run:
$ ./Abricotine --debug
=> not working- then
$ ./Abricotine -- --debug
=> working (the Debug menu appears)
Issue Analytics
- State:
- Created 8 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
Any solution for this issue?
I don’t think this is an Electron Packager specific issue. You’ll have better luck getting support from one of the community forums: https://electronjs.org/community