Sha256: 9549ec4435748c065e695a9a7c0da74b70f10628ea92637bccf5d190fb563920

Contents?: true

Size: 366 Bytes

Versions: 34

Compression:

Stored size: 366 Bytes

Contents

require 'main'

ARGV.replace %w( x y argument )

Main {
  argument 'argument'
  option 'option'

  def run() puts 'run' end

  mode 'a' do
    option 'a-option'
    def run() puts 'a-run' end
  end

  mode 'x' do
    option 'x-option'

    def run() puts 'x-run' end

      mode 'y' do
        option 'y-option'

        def run() puts 'y-run' end
      end
  end
}

Version data entries

34 entries across 33 versions & 2 rubygems

Version Path
main-6.3.0 samples/e.rb
main-6.2.3 samples/e.rb
main-6.2.2 samples/e.rb
main-6.2.1 samples/e.rb
main-6.2.0 samples/e.rb
asana2flowdock-1.0.0 vendor/bundle/ruby/1.9.1/gems/main-6.0.0/samples/e.rb
asana2flowdock-1.0.0 vendor/bundle/ruby/1.9.1/gems/main-6.1.0/samples/e.rb
main-6.1.0 samples/e.rb
main-6.0.0 samples/e.rb
main-5.3.2 samples/e.rb
main-5.3.1 samples/e.rb
main-5.2.0 samples/e.rb
main-5.1.1 samples/e.rb
main-5.1.0 samples/e.rb
main-5.0.1 samples/e.rb
main-5.0.0 samples/e.rb
main-4.8.1 samples/e.rb
main-4.8.0 samples/e.rb
main-4.7.7 samples/e.rb
main-4.7.6 samples/e.rb