Module: Fontist::CLI::ClassOptions
- Included in:
- Fontist::CLI, Fontist::CacheCLI, 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 () Fontist.preferred_family = [:preferred_family] Fontist.log_level = log_level() if [:formulas_path] Fontist.formulas_path = Pathname.new([:formulas_path]) end end |
#log_level(options) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/fontist/cli/class_options.rb', line 13 def log_level() return :debug if [:verbose] return :fatal if [:quiet] :info end |