class Minitar::CLI::Command::Help
Help
command. This will be replaced in a future version by one of the better-executed CLI application frameworks like GLI, after Ruby 1.8 and 1.9 support have been dropped.
Constants
- BASIC
- COMMANDS
Public Instance Methods
call(args, _opts = {})
click to toggle source
# File lib/minitar/cli/command/help.rb, line 37 def call(args, _opts = {}) help_on = args.shift if commander.command?(help_on) ioe[:output] << commander[help_on].help elsif help_on == 'commands' ioe[:output] << COMMANDS else unless help_on.nil? or help_on.empty? ioe[:output] << "Unknown command: #{help_on}\n" end ioe[:output] << help end 0 end
help()
click to toggle source
# File lib/minitar/cli/command/help.rb, line 54 def help BASIC end
name()
click to toggle source
# File lib/minitar/cli/command/help.rb, line 7 def name 'help' end