Module: AwsSamYarnBuilder::OptionParser

Defined in:
lib/aws_sam_yarn_builder/option_parser.rb

Class Method Summary collapse

Class Method Details

.parse!Object



5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/aws_sam_yarn_builder/option_parser.rb', line 5

def self.parse!
  Slop.parse do |o|
    o.string "-d", "--destination", "path to use for the output of the build process", default: "./.aws-sam"
    o.string "-t", "--template-file", "path to the SAM template file", default: "./template.yml"
    o.string "-f", "--function", "The logical ID of a single function to build (optional)"
    o.bool "-u", "--unified-package", "All the functions in the template point to the same CodeUri location, so only create a single package"

    o.on "--help" do
      puts o
      exit
    end
  end
end