Sha256: cca09c6d8fbf823086151a7aab82e2614d38bdf15f76cca9f3a2a934fa31126b
Contents?: true
Size: 565 Bytes
Versions: 6
Compression:
Stored size: 565 Bytes
Contents
require "thor" require_relative "stringify_all_keys" module Metanorma module Cli class ThorWithConfig < Thor no_commands do def options @options_cache original_options = super.to_hash.symbolize_all_keys @options_cache = Metanorma::Cli::Commands::Config.load_configs(original_options) end def filter_compile_options(options) options.select do |k, _| %i[agree_to_terms no_install_fonts continue_without_fonts].include?(k) end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems