Module: Bridgetown::Commands::Start::StartOptions

Defined in:
lib/bridgetown-core/commands/start.rb

Class Method Summary collapse

Class Method Details

.include_options(klass) ⇒ Object



29
30
31
32
33
34
35
36
37
38
# File 'lib/bridgetown-core/commands/start.rb', line 29

def self.include_options(klass)
  klass.option "-P/--port <NUM>",
               "Serve your site on the specified port. Defaults to 4000",
               type: Integer
  klass.option "-B/--bind <IP>", "IP address for the server to bind to", default: "0.0.0.0"
  klass.option "--skip-frontend",
               "Don't load the frontend bundler (always true for production)"
  klass.option "--skip-live-reload",
               "Don't use the live reload functionality (always true for production)"
end