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