Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Command Line Arguments in Dev Mode #581

Closed
jeeftor opened this issue Apr 9, 2018 · 1 comment
Closed

Command Line Arguments in Dev Mode #581

jeeftor opened this issue Apr 9, 2018 · 1 comment

Comments

@jeeftor
Copy link
Contributor

jeeftor commented Apr 9, 2018

Found an issue or bug with electron-vue? Tell me all about it!

Questions regarding how to use electron or vue are likely to be closed as they are not direct issues with this boilerplate. Please seek solutions from official documentation or their respective communities.

Describe the issue / bug.

I'm a little confused as how to pass in command line arguments when using yarn dev run. I'm able to pass them into node .electron-vue/dev-runner.js

~/devel/surveysa/templated/surveysa-client ❯❯❯ yarn dev run -- --arg1 develop ✱ ◼
yarn run v1.5.1
warning package.json: No license field
warning ../../../../package.json: No license field
warning From Yarn 1.0 onwards, scripts don't require "--" for options to be forwarded. In a future version, any explicit "--" will be forwarded as-is to the scripts.
$ node .electron-vue/dev-runner.js run --arg1

But they dont appear to be available in electron. I'm trying to access them via: console.error('CommandLineARgs', process.argv)

Is there guidance on how to pass these all the way into electron when running in dev mode?

@jeeftor
Copy link
Contributor Author

jeeftor commented Apr 9, 2018

I found out how to do this and submitted a patch #582

@jeeftor jeeftor closed this as completed Apr 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant