Clear argv after open the application form the terminal

8 views
Skip to first unread message

Ishanuda

unread,
Jan 14, 2022, 4:01:06 AM1/14/22
to nw.js
Hi,
I open the NW.JS application from the terminal parsing the arguments.

EX: <path/to/app>nwjs.exe  foo  bar

After opening the application, I need to clear the nw.App.argv.

I tried to clear the nw.App.argv by doing 
1. nw.App.argv = [];

2. nw.App.argv.length = 0;

3. while(nw.App.argv.length > 0) nw.App.argv.pop()

No success at all and the field seems to be a read only one.

I would like to know, what is the best way to do this/

Or any other fields that can access the parsed arguments and clear those after using?

Thank you very much
Reply all
Reply to author
Forward
0 new messages