title: C++ Parse command line parameters and bool
body: <p>So, I'm trying to add something that allows me to use argv to allow three command line inputs.</p>
  
  <p>such that: </p>
  
  <pre><code>./program input.dat (string input) 
  </code></pre>
  
  <p>so that (I assume) <code>argv[0] = input.dat</code> and <code>argv[1] = string input</code>, <code>argue[2] = file output</code></p>
  
  <p>...I'm not sure if I'm explaining it right, but this is my best effort.
  what I want to do is have a command line input that allows me to have like, if it says "encrypt" it makes a bool true, and if I type "decrypt" it sets that bool to false.</p>