title: Using gets() gives "No such file or directory" error when I pass arguments to my script
body: <p>Hi I am making a simple ruby script practiced where I make a form using <code>gets.chomp</code> and arguments, the problem is that when <code>gets.chomp</code> use the script returns me an error when I apply the argument <code>test</code>.</p>
  
  <p>The code:</p>
  
  <pre><code>#!usr/bin/ruby
  
  def formulario(quien)
      while (1)
          print "[+] Word : "
          word = gets.chomp
          print quien + " -&gt; " + word
      end
  end
  
  quien = ARGV[0]
  
  formulario(quien)
  </code></pre>
  
  <p>The error:</p>
  
  <pre><code>[+] Word : C:/Users/test/test.rb:8:in `gets': No such file or directory @ rb_sysopen - test (Errno::E
  NOENT)
          from C:/Users/test/test.rb:8:in `gets'
          from C:/Users/test/test.rb:8:in `formulario'
          from C:/Users/test/test.rb:17:in `&lt;main&gt;'
  </code></pre>
  
  <p>Can anyone help?</p>