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

Comment #4 by mdmkolbe:
First, I've gotten too busy to work on this for at least another two months  
so if
someone wants to take this up don't let me stand in your way.  (This bug is  
the main
thing preventing (easily implementing) a Computer Language Shootout entry  
for V8.)

Second, it seems that there are three sorts of arguments: those to V8 (e.g.  
--trace),
those to the shell (e.g. -e) and those to the script.  Whatever solution is  
arrived
at will have to account for all three.  Having the flag parser stop  
after "--" and
optionally stop at the first unrecognized option would go a ways to helping  
implement
this.  (Other option parsing systems such as "getopt" may show the way  
here.)  If we
can get compatability with Rhino while still being able to handle all three  
sorts of
options that would be good.  (IIRC some of the original design in the patch  
departed
from Rhino et al. in order to continue supporting the multiple file  
behavior of the
original shell as I wasn't sure if anyone might balk at that functionality  
being
removed from the shell.)




-- 
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