title: Taking parameters on the command line in C++
body: <p>I've a program that takes two csv files and a checkin date as inputs and renders a certain output. Thus I'd normally run the executable in this manner,</p>
  
  <pre><code>./my_executable file.csv 2015-10-13
  </code></pre>
  
  <p>However my requirement is to have the usage behave this way</p>
  
  <pre><code>my_executable --input1 ./file1.csv --input2 ./file2.csv --date 2015-08-01
  </code></pre>
  
  <p>How can I do this. Do I have write the words input1, input2 and date somewhere in my code. Any help appreciated.</p>