Method: Moonshot::CommandLine#handle_early_commands
- Defined in:
- lib/moonshot/command_line.rb
#handle_early_commands ⇒ Object
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
# File 'lib/moonshot/command_line.rb', line 129 def handle_early_commands # If this is a legacy (Thor) help command, re-write it as # OptionParser format. case ARGV[0] when 'help' ARGV.delete_at(0) ARGV.push('-h') when 'new' app_name = ARGV[1] ::Moonshot::Commands::New.run!(app_name) return true end # Proceed to processing commands normally. false end |