Branch: Tag:

2016-12-06

2016-12-06 17:08:11 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Arg: Fixed some bugs in _indices() and _values().

467:    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;
618:    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);    }
626:    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);