summaryrefslogtreecommitdiff
path: root/libstd/optparse.myr
diff options
context:
space:
mode:
Diffstat (limited to 'libstd/optparse.myr')
-rw-r--r--libstd/optparse.myr4
1 files changed, 2 insertions, 2 deletions
diff --git a/libstd/optparse.myr b/libstd/optparse.myr
index e1bdb61..40374db 100644
--- a/libstd/optparse.myr
+++ b/libstd/optparse.myr
@@ -82,7 +82,7 @@ const optnext = {ctx
;;
| `Some (false, _):
arg = ""
- if !ctx.curarg.len
+ if ctx.curarg.len != 0
next(ctx)
;;
;;
@@ -92,7 +92,7 @@ const optnext = {ctx
}
const optdone = {ctx
- -> !ctx.curarg.len && ctx.finished
+ -> ctx.curarg.len == 0 && ctx.finished
}
const optinfo = {ctx, arg