title: tcsh - Command line arguments beginning with dash (-)
body: <p>I need to check the first command line argument to see if it's <code>-cleanup</code>.  My code is:</p>
  
  <pre><code>if ( $* != null ) then
  
  if ( "X$argv[$n]" == "X-cleanup" ) then
      echo "its cleanup"
  </code></pre>
  
  <p>I first check to make sure there is at least 1 argument.  <code>n</code> is set to <code>1</code> at the beginning of the program.  When I try to run my script with <code>-cleanup</code> as an argument I get this error:</p>
  
  <pre><code>if: Malformed file inquiry.
  </code></pre>
  
  <p>I've tried solutions from the few forum posts I found online but I cannot figure out how to correctly handle the dash.  It's a tcsh shell.</p>