title: Failed to validate arguments being parsed to Expect Script
body: <p>I am writing an Expect script for first time, and I would like to have a checker to validate user arguments. But I am getting errors as following, please do let me know if you know what has went wrong. Thanks</p>
  
  <pre><code>#!/usr/bin/expect
  
  if {$argc != 1}
  {
          puts 'Insert IP address of tftp server'
          exit 1
  }
  </code></pre>
  
  <p>This is the erro</p>
  
  <pre><code>jeff@mymachine:/home/jeff~$ ./test.sh
  wrong # args: no script following "$argc != 1" argument
      while executing
  "if {$argc != 1}"
      (file "./test.sh" line 3)
  </code></pre>