diff --git a/doc/examples/ex1/ex1.rb b/doc/examples/ex1/ex1.rb index 8bb3126..890766f 100755 --- a/doc/examples/ex1/ex1.rb +++ b/doc/examples/ex1/ex1.rb @@ -3,7 +3,7 @@ gemfile do source 'https://rubygems.org' - gem "simple-cli", '~> 0.2', path: "../../.." + gem "simple-cli", '~> 0.3', path: "../../.." end module Ex1; end @@ -37,4 +37,5 @@ def hello(message, name: nil) end end -Ex1::CLI.run!(*ARGV) +$0 = "ex1" +Simple::CLI.run!(Ex1::CLI)