class Libis::Format::Cli::SubCommand

Public Class Methods

banner(command, namespace = nil, subcommand = false) click to toggle source
subcommand_prefix() click to toggle source
# File lib/libis/format/cli/sub_command.rb, line 15
def self.subcommand_prefix
  self.name.gsub(%r{.*::}, '').gsub(%r{^[A-Z]}) { |match| match[0].downcase }.gsub(%r{[A-Z]}) { |match| "-#{match[0].downcase}" }
end