Sha256: abd4d3473b447af49b9998020b33f9a99a141ae3c5b4b6159148eb48c288e0f5

Contents?: true

Size: 567 Bytes

Versions: 17

Compression:

Stored size: 567 Bytes

Contents

require 'main'

Main {
  argument('directory'){ description 'the directory to operate on' }

  option('force'){ description 'use a bigger hammer' }

  def run
    puts 'this is how we run when no mode is specified'
  end

  mode 'compress' do
    option('bzip'){ description 'use bzip compression' }

    def run
      puts 'this is how we run in compress mode' 
    end
  end

  mode 'uncompress' do
    option('delete-after'){ description 'delete orginal file after uncompressing' }

    def run
      puts 'this is how we run in un-compress mode' 
    end
  end
}

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
ahoward-main-2.9.0 samples/f.rb
main-2.9.3 samples/f.rb
main-2.9.2 samples/f.rb
main-2.9.0 samples/f.rb
main-2.3.0 samples/f.rb
main-2.0.0 samples/f.rb
main-2.4.0 samples/f.rb
main-2.2.0 samples/f.rb
main-2.1.0 samples/f.rb
main-2.8.1 samples/f.rb
main-2.8.2 samples/f.rb
main-2.6.0 samples/f.rb
main-2.5.0 samples/f.rb
main-2.8.4 samples/f.rb
main-2.7.0 samples/f.rb
main-2.8.3 samples/f.rb
main-2.8.0 samples/f.rb