lib/bunto/commands/help.rb in bunto-3.0.0 vs lib/bunto/commands/help.rb in bunto-3.2.1
- old
+ new
@@ -2,12 +2,12 @@
module Commands
class Help < Command
class << self
def init_with_program(prog)
prog.command(:help) do |c|
- c.syntax 'help [subcommand]'
- c.description 'Show the help message, optionally for a given subcommand.'
+ c.syntax "help [subcommand]"
+ c.description "Show the help message, optionally for a given subcommand."
c.action do |args, _|
cmd = (args.first || "").to_sym
if args.empty?
puts prog
@@ -20,10 +20,11 @@
end
end
end
def invalid_command(prog, cmd)
- Bunto.logger.error "Error:", "Hmm... we don't know what the '#{cmd}' command is."
+ Bunto.logger.error "Error:",
+ "Hmm... we don't know what the '#{cmd}' command is."
Bunto.logger.info "Valid commands:", prog.commands.keys.join(", ")
end
end
end
end