On Thu, Aug 16, 2007 at 06:45:00PM +0000, Martin Nilsson (Opera Mini - AFK!) @ Pike (-) developers forum wrote:
I've been working a bit on a new Argument parser
void main(int num, array argv) { mapping args = Arg.parse(argv); argv = args[Arg.REST]; }
i tried this, and it does not work like that.
Arg.REST does not exist, and Arg.parse(argv); produces Index parse not present in module "Arg".
if i change that to Arg()->parse(argv); i get: No cast method in object. /local/users/mbaehr/tomoyo/src/pike/Pike.g-7.7/lib/modules/Arg.pike:484:
from looking at the source i can't tell if there is stuff missing or if there is a different way to use it.
greetings, martin.