Sha256: 222a19a7eff6c8512016ccdeaa082d71d208a235901a8e62657690f8707f68e9
Contents?: true
Size: 573 Bytes
Versions: 4
Compression:
Stored size: 573 Bytes
Contents
#!/usr/bin/env ruby require "how_is" require "how_is/cli" require "how_is/cli/parser" begin parser = HowIs::CLI::Parser.new result = parser.call(ARGV) rescue HowIs::CLI::OptionsError => e if ENV['SHOW_TRACE'] raise else abort "Error: #{e.message}" end end opts = result[:opts] options = result[:options] arguments = result[:arguments] if options[:help] puts result[:opts] elsif options[:version] puts HowIs::VERSION elsif options[:config] HowIs::CLI.new.from_config_file(options[:config]) else HowIs.generate_report_file(options) end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
how_is-12.0.0 | exe/how_is |
how_is-11.0.0 | exe/how_is |
how_is-10.0.0 | exe/how_is |
how_is-9.0.0 | exe/how_is |