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