summaryrefslogtreecommitdiff
path: root/sample/getopts.test
diff options
context:
space:
mode:
Diffstat (limited to 'sample/getopts.test')
-rwxr-xr-xsample/getopts.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/sample/getopts.test b/sample/getopts.test
index 16f1bb0..cdb818d 100755
--- a/sample/getopts.test
+++ b/sample/getopts.test
@@ -11,10 +11,10 @@ $USAGE = 'usage'
parseArgs(0, !nil, "d", "x:", "y:", "version", "geometry:")
if ($OPT_d)
if ($OPT_x)
- printf("x = %d\n", $OPT_x.atoi)
+ printf("x = %d\n", $OPT_x.to_i)
end
if ($OPT_y)
- printf("y = %d\n", $OPT_y.atoi)
+ printf("y = %d\n", $OPT_y.to_i)
end
if ($OPT_geometry)
printf("geometry = %s\n", $OPT_geometry)