summaryrefslogtreecommitdiff
path: root/lib/std/optparse.myr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/optparse.myr')
-rw-r--r--lib/std/optparse.myr5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/std/optparse.myr b/lib/std/optparse.myr
index 6202aa4..c02d166 100644
--- a/lib/std/optparse.myr
+++ b/lib/std/optparse.myr
@@ -4,12 +4,13 @@ use "extremum"
use "fmt"
use "strbuf"
use "option"
-use "sleq"
use "slpush"
use "syswrap-ss"
use "syswrap"
use "types"
use "utf"
+use "traits"
+use "hashfuncs"
pkg std =
type optdef = struct
@@ -166,7 +167,7 @@ const next = {ctx
for i = ctx.argidx + 1; i < ctx.optargs.len; i++
if !ctx.optdone && decode(ctx.optargs[i]) == '-'
- if sleq(ctx.optargs[i], "--")
+ if eq(ctx.optargs[i], "--")
ctx.optdone = true
else
goto foundopt