title: csh script with command line options
body: <p>I am currently writing a script in csh and my script has to take a <code>-f</code> command line option so my script would look like this:</p>
  
  <pre><code>checker -f 
  </code></pre>
  
  <p>and that would do what I would want it to do.
  How would I check if if the user put a <code>-f</code> command line option? </p>
  
  <pre><code>if($1 == "-f") then
      do something
  endif
  </code></pre>
  
  <p>This above gives me the error saying "if: Missing file name". I'm pretty sure I'm going the wrong way about check to see if the user is putting a command line option — but what should I be doing?</p>