From 706839c701471909b2f71a6de9d7173f6b4afcc4 Mon Sep 17 00:00:00 2001 From: Martin Nilsson <nilsson@fastmail.com> Date: Wed, 28 Dec 2016 21:06:54 +0100 Subject: [PATCH] Fixed a surprise-deprecation. --- lib/modules/Arg.pmod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules/Arg.pmod b/lib/modules/Arg.pmod index 4420995eb1..28c9ac3dc1 100644 --- a/lib/modules/Arg.pmod +++ b/lib/modules/Arg.pmod @@ -418,7 +418,7 @@ class LowOptions 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; -- GitLab