~tim/scheme-vm

50f0ca90dfb06927a0b4b838d423104d009df244 — Tim Morgan 2 years ago 9d7f73b
Show example code that actually works
1 files changed, 1 insertions(+), 1 deletions(-)

M bin/scheme
M bin/scheme => bin/scheme +1 -1
@@ 6,7 6,7 @@ require_relative '../program'
options = { debug: 0 }
opt_parser = OptionParser.new do |opts|
  opts.banner = "Usage: scheme [options] path [arguments]\n" \
                '       scheme [options] -e "(print (+ 2 2))" [arguments]'
                "       scheme [options] -e '(import (scheme write)) (write \"hello world\")' [arguments]"

  opts.on('-e SCRIPT', 'Execute script passed as argument') do |script|
    options[:script] = script