title: Parse command line arguments in Lex
body: <p>Suppose I want my Lex and Yacc program to parse the command line arguments like:</p>
  
  <pre><code>./a.out show memory
  </code></pre>
  
  <p>I want lex to parse the string "show memory". How do I accomplish this?</p>