class Falcon::Command::Serve
def endpoint_options
def endpoint_options # Oh, for Hash#slice(keys...) options = {} if @options.key? :hostname options[:hostname] = @options[:hostname] end if @options.key? :port options[:port] = @options[:port] end if @options.key? :reuse_port options[:reuse_port] = @options[:reuse_port] end if duration = @options[:timeout] and !duration.zero? options[:timeout] = duration end return options end