module Envo::Cli::Runner::Opts

Constants

Defaults

Public Instance Methods

parse_cli(opt) click to toggle source
# File lib/envo/cli/runner.rb, line 17
def parse_cli(opt)
  case opt
  when '--force', '-f' then return {interact: :force}
  when '--no-force', '-nf' then return {interact: :noforce}
  when '--interactive' then return {interact: :interact}
  when '--raw', '-r' then return {raw: true}
  else raise Envo::Error.new "unknown command line option: #{opt}"
  end
end
print_arg(log, arg, text) click to toggle source
print_help(log) click to toggle source