pike.git / lib / modules / Arg.pmod

version» Context lines:

pike.git/lib/modules/Arg.pmod:460:    //!    protected string application;       //!    protected void create(array(string) _argv, void|mapping(string:string) env)    {    if(!env)    env = getenv();       // Make a list of all the arguments we can parse. -  foreach(::_indices(2), string index) +  foreach(::_indices(this, 0), string index)    {    mixed val = ::`[](index, this, 0);    if(objectp(val) && val->is_opt) opts[index]=val;    }       application = _argv[0];    argv = _argv[1..];    mapping(string:Opt) unset = opts+([]);       while(sizeof(argv))
pike.git/lib/modules/Arg.pmod:611:    {    if( id==REST ) return argv;    if( id==PATH ) return application;    if( id==APP ) return basename(application);    return values[id];    }       protected array _indices(object|void ctx, int|void access)    {    if (!access) { -  return indices(values) + ({ REST, PATH, APP }); +  return ::_indices(this, access) + ({ REST, PATH, APP });    }    return ::_indices(ctx, access);    }       protected array _values(object|void ctx, int|void access)    {    if (!access) { -  return predef::values(values) + +  return ::_values(this, access) +    ({ argv, application, basename(application) });    }    return ::_values(ctx, access);    }       protected array _types(object|void ctx, int|void access)    {    if (!access) {    return map(predef::values(values) +    ({ argv, application, basename(application) }), _typeof);