-require 'io/console' require_relative '../lib/es_client' require_relative '../lib/build_my_info_client'
-print 'email: ' -my_email = $stdin.echo = gets.chomp -print 'name: ' -my_name = $stdin.echo = gets.chomp -print 'lab: ' -lab = $stdin.echo = gets.chomp +my_email = ARGV[0] +my_name = ARGV[1] +lab = ARGV[2]
you can directly write as my_email, my_name, lab = ARGV
Thanks, Luan Shengde
build_my_info = BuildMyInfo.new(my_email, my_name, lab) build_my_info.config_my_info -- 2.23.0