Class: CmdParse::Command
- Inherits:
-
Object
- Object
- CmdParse::Command
- Defined in:
- lib/pure_m_v_c_gen/commands/command_extensions.rb
Direct Known Subclasses
PureMVCGen::Commands::CheckCommand, PureMVCGen::Commands::InitializeCommand, PureMVCGen::Commands::NewCommand, PureMVCGen::Commands::NewCommand::CreateCommand, PureMVCGen::Commands::NewCommand::CreateMediator, PureMVCGen::Commands::NewCommand::CreateProxy
Instance Method Summary collapse
-
#default_options(&block) ⇒ Object
injects our common options.
Instance Method Details
#default_options(&block) ⇒ Object
injects our common options
4 5 6 7 8 9 10 11 12 |
# File 'lib/pure_m_v_c_gen/commands/command_extensions.rb', line 4 def (&block) CmdParse::OptionParserWrapper.new do |opt| opt.on("-h", "--help") do self.show_help exit end yield(opt) end end |