How can I get the command line arguments?

5 views
Skip to first unread message

Chen, Zhang Z

unread,
Nov 6, 2012, 1:47:18 AM11/6/12
to node-...@googlegroups.com
After I spawn a new nw child_process, I need to get the command line arguments in the child process. process.argv only contains ["node", "node"] in it.

Zhao Cheng

unread,
Nov 6, 2012, 2:04:29 AM11/6/12
to node-...@googlegroups.com
This feature has been implemented in v0.3.2, which would be released
today or tomorrow.

On Tue, Nov 6, 2012 at 2:47 PM, Chen, Zhang Z <zhang....@intel.com> wrote:
> After I spawn a new nw child_process, I need to get the command line arguments in the child process. process.argv only contains ["node", "node"] in it.



--
Cheng
Intel Open Source Technology Center

Zhao Cheng

unread,
Nov 6, 2012, 9:00:03 PM11/6/12
to node-...@googlegroups.com, zhang....@intel.com
This feature does no work on Windows because of this bug:
https://github.com/rogerwang/node-webkit/issues/150

unfortunately I found it just before the release of v0.3.2, is this
feature urgent for you?

Chen, Zhang Z

unread,
Nov 6, 2012, 9:21:12 PM11/6/12
to Zhao Cheng, node-...@googlegroups.com
>Cc: Chen, Zhang Z
>Subject: Re: [node-webkit] How can I get the command line arguments?
>
>This feature does no work on Windows because of this bug:
>https://github.com/rogerwang/node-webkit/issues/150
>
>unfortunately I found it just before the release of v0.3.2, is this feature urgent
>for you?
This feature currently is not needed any more as long as showDevTools can force closing the previous connection to the inspector.

Andy Green

unread,
Nov 17, 2012, 10:53:53 PM11/17/12
to node-...@googlegroups.com
How can I obtain the command-line arguments for node-webkit (now that the update has been released?)

Zhao Cheng

unread,
Nov 18, 2012, 3:32:06 AM11/18/12
to node-...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages