module Dreck

The primary namespace for {Dreck}.

Constants

VERSION

{Dreck}'s current version.

Public Class Methods

parse(args = ARGV, strict: true, &block) click to toggle source

Parse the given arguments and produce a result. @param args [Array<String>] the arguments to parse @param strict [Boolean] whether or not to be strict about argument absorption @return [Result] the parsing result

# File lib/dreck.rb, line 14
def self.parse(args = ARGV, strict: true, &block)
  result = Result.new(args, strict: strict)
  result.instance_eval(&block)
  result.parse!
end