Sha256: c3614496a95c11480c970280108c023f69e8b40bedf6f58cc41fcf386d58235f

Contents?: true

Size: 200 Bytes

Versions: 2

Compression:

Stored size: 200 Bytes

Contents

#!/usr/bin/env ruby
require 'main'

Main {
  mode( :foo ) {
    argument( :bar ) {
      required
      default 42
    }
    run {
      puts "Doing something with #{params['bar'].value}"
    }
  }
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
main-4.3.0 samples/j.rb
main-4.2.0 samples/j.rb