Module: GLI
- Includes:
- App
- Defined in:
- lib/gli.rb,
lib/gli/app.rb,
lib/gli/dsl.rb,
lib/gli/flag.rb,
lib/gli/switch.rb,
lib/gli/command.rb,
lib/gli/options.rb,
lib/gli/version.rb,
lib/gli/terminal.rb,
lib/gli/exceptions.rb,
lib/gli/app_support.rb,
lib/gli/commands/doc.rb,
lib/gli/commands/help.rb,
lib/gli/command_support.rb,
lib/gli/commands/scaffold.rb,
lib/gli/gli_option_parser.rb,
lib/gli/command_line_token.rb,
lib/gli/command_line_option.rb,
lib/gli/commands/initconfig.rb,
lib/gli/option_parser_factory.rb,
lib/gli/copy_options_to_aliases.rb,
lib/gli/commands/compound_command.rb,
lib/gli/commands/rdoc_document_listener.rb,
lib/gli/commands/help_modules/text_wrapper.rb,
lib/gli/commands/help_modules/command_finder.rb,
lib/gli/commands/help_modules/list_formatter.rb,
lib/gli/commands/help_modules/one_line_wrapper.rb,
lib/gli/commands/help_modules/tty_only_wrapper.rb,
lib/gli/commands/help_modules/verbatim_wrapper.rb,
lib/gli/commands/help_modules/options_formatter.rb,
lib/gli/commands/help_modules/arg_name_formatter.rb,
lib/gli/commands/help_modules/global_help_format.rb,
lib/gli/commands/help_modules/command_help_format.rb,
lib/gli/commands/help_modules/help_completion_format.rb
Defined Under Namespace
Modules: App, AppSupport, CommandSupport, Commands, CopyOptionsToAliases, DSL, StandardException Classes: BadCommandLine, Command, CommandLineOption, CommandLineToken, CustomExit, Flag, GLIOptionParser, InitConfig, OptionParserFactory, Options, Switch, Terminal, UnknownCommand, UnknownCommandArgument, UnknownGlobalArgument
Constant Summary collapse
- VERSION =
:nodoc:
'2.4.0'
Class Method Summary collapse
Methods included from App
#accept, #around, #commands_from, #config_file, #default_command, #exit_now!, #help_now!, #on_error, #post, #pre, #preserve_argv, #program_desc, #program_long_desc, #program_name, #skips_around, #skips_post, #skips_pre, #sort_help, #use_openstruct, #version, #wrap_help_text
Methods included from AppSupport
#accepts, #around_blocks, #clear_nexts, #commands, #commands_declaration_order, #config_file_name, #context_description, #copy_options_to_aliased_versions, #error_device=, #flags, #get_default_command, #help_sort_type, #help_text_wrap_type, #override_command_defaults, #override_default, #override_defaults_based_on_config, #parse_config, #post_block, #pre_block, #reset, #run, #stderr, #switches, #version_string
Methods included from DSL
#arg_name, #clear_nexts, #command, #default_value, #desc, #flag, #long_desc, #switch
Methods included from CopyOptionsToAliases
Class Method Details
.included(klass) ⇒ Object
24 25 26 |
# File 'lib/gli.rb', line 24 def self.included(klass) warn "You should include GLI::App instead" end |
.run(*args) ⇒ Object
28 29 30 31 32 |
# File 'lib/gli.rb', line 28 def self.run(*args) warn "GLI.run no longer works for GLI-2, you must just call `run(ARGV)' instead" warn "either fix your app, or use the latest GLI in the 1.x family" 1 end |