Module: FindSubscriptions::HelpFormatter

Defined in:
lib/find_subscriptions/help_text.rb

Overview

Formats help output for the CLI: full help and per-flag targeted help.

Constant Summary collapse

"find-subscriptions \u2014 detect recurring charges in your bank/credit card exports\n\nUsage: find-subscriptions --files a.csv,b.csv [OPTIONS]\n"

Class Method Summary collapse

Class Method Details

.flag_help(flag_name) ⇒ Object



98
99
100
# File 'lib/find_subscriptions/help_text.rb', line 98

def self.flag_help(flag_name)
  HelpText::DESCRIPTIONS[flag_name]
end

.full_helpObject



93
94
95
96
# File 'lib/find_subscriptions/help_text.rb', line 93

def self.full_help
  sections = HelpText::DESCRIPTIONS.map { |_key, desc| desc }
  "#{BANNER}\n#{sections.join("\n\n")}\n"
end