title: Best way to parse command line arguments in C#?
body: <p>When building console applications that take parameters, you can use the arguments passed to <code>Main(string[] args)</code>. </p>
  
  <p>In the past I've simply indexed/looped that array and done a few regular expressions to extract the values. However, when the commands get more complicated, the parsing can get pretty ugly.  </p>
  
  <p>So I'm interested in:</p>
  
  <ul>
  <li>Libraries that you use</li>
  <li>Patterns that you use</li>
  </ul>
  
  <p>Assume the commands always adhere to common standards such as <a href="https://stackoverflow.com/questions/108728/suggestions-for-implemetation-of-a-commnd-line-application-interface">answered here</a>.</p>