Module: Fontist::CLI::ClassOptions

Included in:
Fontist::CLI, FontconfigCLI, ImportCLI, RepoCLI
Defined in:
lib/fontist/cli/class_options.rb

Instance Method Summary collapse

Instance Method Details

#handle_class_options(options) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/fontist/cli/class_options.rb', line 4

def handle_class_options(options)
  Fontist.preferred_family = options[:preferred_family]
  Fontist.log_level = options[:quiet] ? :fatal : :info

  if options[:formulas_path]
    Fontist.formulas_path = Pathname.new(options[:formulas_path])
  end
end