Module: ShopifyCLI::CommandOptions::CommandServeOptions::ClassMethods

Defined in:
lib/shopify_cli/command_options/command_serve_options.rb

Instance Method Summary collapse

Instance Method Details

#parse_host_optionObject



31
32
33
34
35
36
37
# File 'lib/shopify_cli/command_options/command_serve_options.rb', line 31

def parse_host_option
  options do |parser, flags|
    parser.on("--host=HOST") do |h|
      flags[:host] = h.gsub('"', "")
    end
  end
end

#parse_no_update_optionObject



45
46
47
48
49
# File 'lib/shopify_cli/command_options/command_serve_options.rb', line 45

def parse_no_update_option
  options do |parser, flags|
    parser.on("--no-update") { flags[:no_update] = true }
  end
end

#parse_port_optionObject



39
40
41
42
43
# File 'lib/shopify_cli/command_options/command_serve_options.rb', line 39

def parse_port_option
  options do |parser, flags|
    parser.on("--port=PORT") { |port| flags[:port] = port }
  end
end