lib/subcommand.rb
## add text of subcommands in help and --help option
add text of subcommands in help and --help option
add text of subcommands in help and -- help option
def add_subcommand_help
    cmdtext = print_actions
    global_options do |opts|
      opts.banner << "\n#{opts.description}\n" if opts.description
      opts.separator ""
      opts.separator cmdtext
    end
  end
def add_subcommand_help cmdtext = print_actions global_options do | opts | opts . banner << "\n#{opts.description}\n" if opts . description opts . separator "" opts . separator cmdtext end end
add text of subcommands in help and --help option
add text of subcommands in help and -- help option
# user has defined some, but lets add subcommand information # lets add the description user gave into banner