Class: Cli

Inherits:
Object
  • Object
show all
Defined in:
lib/simple-make/cli.rb

Instance Method Summary collapse

Instance Method Details

#create_project(args) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/simple-make/cli.rb', line 6

def create_project args
  options = {workspace: File.absolute_path(".")}
  parser = OptionParser.new do |opts|
    opts.on("--relative-path") do
      options[:path_mode] = :relative
    end
    opts.on("-v") do
      $std_logger.level = Logger::DEBUG
    end
  end
  parser.parse(args)
  Project.new options
end