Sha256: 53a6b9140dfb738528b6994e962d29dfa48ae7bffd0598a3d626ebd3724dd457

Contents?: true

Size: 227 Bytes

Versions: 1

Compression:

Stored size: 227 Bytes

Contents

module ArgsParser

  def self.parse(argv=[], config={}, &block)
    Config::DEFAULT.each do |k,v|
      config[k] = v unless config[k]
    end
    parser = Parser.new(config, &block)
    parser.parse argv
    parser
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
args_parser-0.2.0 lib/args_parser/main.rb