Module: ArgParser

Defined in:
lib/arg-parser/argument.rb,
lib/arg-parser/dsl.rb,
lib/arg-parser/parser.rb,
lib/arg-parser/definition.rb

Overview

Namespace for classes defined by ArgParser, the command-line argument parser.

Defined Under Namespace

Modules: DSL Classes: Argument, ArgumentScope, CommandArgument, CommandBlock, CommandInstance, Definition, FlagArgument, KeywordArgument, NoSuchArgumentError, Parser, PositionalArgument, RestArgument, ValueArgument

Constant Summary collapse

OnParseHandlers =

Hash containing registered handlers for :on_parse options

{
    :split_to_array => lambda{ |val, arg, hsh| val.split(',') }
}
PredefinedArguments =

Hash containing globally registered predefined arguments available via #predefined_arg. Predefined arguments should normally be defined within an ArgumentScope, rather than globally. See DSL.define_args for pre-defining arguments on an including class, or use the argument creation methods on ArgumentScope,

{ }