Method: GLI::App#default_command
- Defined in:
- lib/gli/app.rb
#default_command(command) ⇒ Object
Sets a default command to run when none is specified on the command line. Note that if you use this, you won’t be able to pass arguments, flags, or switches to the command when run in default mode. All flags and switches are treated as global, and any argument will be interpretted as the command name and likely fail.
command-
Command as a Symbol to run as default
259 260 261 |
# File 'lib/gli/app.rb', line 259 def default_command(command) @default_command = command.to_sym end |