Sha256: 04bfa6e2c202c4783e25ba7f58c44399f88ddaa479e6447d19c1dddb1d659ef6

Contents?: true

Size: 458 Bytes

Versions: 6

Compression:

Stored size: 458 Bytes

Contents

require 'slop'
require 'erb_asterisk/version'

module ErbAsterisk
  class ArgParser
    def execute
      Slop.parse do |o|
        o.string '-t', '--templates',
                 'set templates path (e.g.: ~/.erb_asterisk)'

        o.on '-v', '--version', 'print the version' do
          puts "#{VERSION}"
          exit
        end

        o.on '-h', '--help', 'print this help' do
          puts o
          exit
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
erb_asterisk-0.0.13 lib/erb_asterisk/arg_parser.rb
erb_asterisk-0.0.12 lib/erb_asterisk/arg_parser.rb
erb_asterisk-0.0.11 lib/erb_asterisk/arg_parser.rb
erb_asterisk-0.0.10 lib/erb_asterisk/arg_parser.rb
erb_asterisk-0.0.9 lib/erb_asterisk/arg_parser.rb
erb_asterisk-0.0.8 lib/erb_asterisk/arg_parser.rb