class Falcon::Command::Serve

def endpoint_options

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