ClosestStorm / v8cgi

Automatically exported from code.google.com/p/v8cgi
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

GetOpt cant parce short option #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Get example from http://code.google.com/p/v8cgi/wiki/API_GetOpt
2. Run and see "Error: Missing value for '-i'"

All work correct if use '---' between options and arguments:
var args = ["--human", "-vv", "-i", "eth0", '--', "someText1", "someText2"];
But it's too ugly, always use '--' in command line.

I use v8cgi 0.6.0 on Mac OS X.

Original issue reported on code.google.com by mr.ve...@gmail.com on 5 Jul 2009 at 8:42

GoogleCodeExporter commented 9 years ago

Original comment by ondrej.zara on 5 Jul 2009 at 9:42

GoogleCodeExporter commented 9 years ago
This issue was fixed today, in revision 523. Thanks for reporting!

Original comment by ondrej.zara on 5 Jul 2009 at 9:52