Module: Belafonte::Help::FlagExtensions

Defined in:
lib/belafonte/help/flag_extensions.rb

Instance Method Summary collapse

Instance Method Details

#long_flagsObject



10
11
12
# File 'lib/belafonte/help/flag_extensions.rb', line 10

def long_flags
  long.map {|long_flag| longify(long_flag)}
end

#short_flagsObject



6
7
8
# File 'lib/belafonte/help/flag_extensions.rb', line 6

def short_flags
  short.map {|short_flag| shortify(short_flag)}
end

#signatureObject



14
15
16
# File 'lib/belafonte/help/flag_extensions.rb', line 14

def signature
  "#{(short_flags + long_flags).join(', ')} - #{description}"
end