title: How to read/process command line arguments?
body: <p>I am originally a C programmer. I have seen numerous tricks and "hacks" to read many different arguments. </p>
  
  <p>What are some of the ways Python programmers can do this?</p>
  
  <h3>Related</h3>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/20063/whats-the-best-way-to-grab-parse-command-line-arguments-passed-to-a-python-scrip">What’s the best way to grab/parse command line arguments passed to a Python script?</a></li>
  <li><a href="https://stackoverflow.com/questions/362426/implementing-a-command-action-parameter-style-command-line-interfaces">Implementing a “[command] [action] [parameter]” style command-line interfaces?</a></li>
  <li><a href="https://stackoverflow.com/questions/567879/how-can-i-process-command-line-arguments-in-python">How can I process command line arguments in Python?</a></li>
  <li><a href="https://stackoverflow.com/questions/642648/how-do-i-format-positional-argument-help-using-pythons-optparse">How do I format positional argument help using Python’s optparse?</a></li>
  </ul>