summaryrefslogtreecommitdiff
path: root/sample/opt_s.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/opt_s.rb')
-rw-r--r--sample/opt_s.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/sample/opt_s.rb b/sample/opt_s.rb
index 4981119..5402be7 100644
--- a/sample/opt_s.rb
+++ b/sample/opt_s.rb
@@ -5,4 +5,6 @@ end
if ($zzz)
print("zzz = ", $zzz, "\n")
end
-print($ARGV.join(", "), "\n")
+if ($ARGV.length > 0)
+ print($ARGV.join(", "), "\n")
+end