Module: CommandHelpFormatPatch

Defined in:
lib/patches/gli.rb

Overview

Patch GLI’s help formatters so they don’t show subcommands that are supposed to be hidden.

Instance Method Summary collapse

Instance Method Details

#formatObject



4
5
6
7
8
9
# File 'lib/patches/gli.rb', line 4

def format
  @command.commands.reject! {|k,c| c.nodoc}
  @command.commands_declaration_order.reject! {|c| c.nodoc}

  super
end