lib/evostream/cli/option/port.rb
# frozen_string_literal: true
module Evostream
module CLI
module Argument
# Argument for change port used with command
class Port < Arg
include Singleton
KEY = ['--port'].freeze
private
def action
param = parameter('--port')
CLI::Config.instance.change_host(param)
rescue
raise CodeError::Syntax::OptionInvalid
end
end
end
end
end