Issue 39: Provide for passing arguments to scripts
http://code.google.com/p/v8/issues/detail?id=39

Comment #2 by lpsantil:
What if the shell supported something like this:

Compile only
-C
Execute String
-e string
Treat script file as executable script (first line of script must begin with
"/usr/bin/env v8sh -P")
-P
Execute File
-f file.js
Startup in interactive/shell mode
--shell
-i

Usage:
v8sh [-C] -e "print(0);" [arg0 [arg1 [...]]]
v8sh -P [arg0 [arg1 [...]]]
v8sh [-C] -f file.js [arg0 [arg1 [...]]]
v8sh --shell [arg0 [arg1 [...]]]
v8sh -i [arg0 [arg1 [...]]]
v8sh

The last command defaulting to --shell mode w/no arguments.



-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to