Sha256: 5e0428d63f35ca16e5c2bbf2da0a9a3f58162b3cc748a0f5154476d5ae7a805a
Contents?: true
Size: 806 Bytes
Versions: 1
Compression:
Stored size: 806 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true require 'optparse' $LOAD_PATH.push File.expand_path('../../lib', __FILE__) options = {} OptionParser.new do |opts| opts.banner = 'Usage: massa [options]' opts.on('-h', '--help', 'Display this help') do puts opts puts puts 'You can read the official documentation here:' puts 'https://github.com/lucascaton/massa#massa' puts exit end opts.on('-v', '--version', 'Display version') do require 'massa/version' puts Massa::VERSION exit end opts.on('-V', '--verbose', 'Run verbosely') do |v| options[:verbose] = v end end.parse! require 'massa' begin Massa::Analyzier.run!(options) rescue Gem::LoadError Massa::CLI.colorize :red, "¯\\_(ツ)_/¯ 'massa' gem is not in your Gemfile." exit 1 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
massa-0.0.9 | bin/massa |