class Rbnotes::Commands::Commands
Prints all command names into a single line. When `-d` (or `–deve-commands`) was specified, development commands (such `conf`) would be also printed in addition to general commands.
Public Instance Methods
execute(args, conf)
click to toggle source
# File lib/rbnotes/commands/commands.rb, line 13 def execute(args, conf) @opts = {} parse_opts(args) puts commands(@opts[:print_deve_commands]).join(" ") end
help()
click to toggle source
# File lib/rbnotes/commands/commands.rb, line 20 def help puts <<HELP usage: #{Rbnotes::NAME} [-d|--deve-commands] Print all command names into a single line. If "-d" option (or "--deve-commands") is specified, commands for development purpose are also printed. HELP print_commands end