title: How to write a command line tool using bash
body: <p>I want to write a command line tool like git which will follow the <code>POSIX</code> standards. It will take the options like <code>--help</code> or <code>-h</code> , <code>--version</code> ..etc. But i am not getting how to do it. Can anybody tell me how to do this using bash scripting. Please help me. This is something very new to me.</p>
  
  <p>Example : if the name of my tool is Check-code then i want to use the tool like ;</p>
  
  <pre><code>Check-code --help 
  </code></pre>
  
  <p>or </p>
  
  <pre><code>Check-code --version
  </code></pre>