title: Handling command line flags in C/C++
body: <p>I am looking for a very simple explanation/tutorial on what flags are. I understand that flags work indicate a command what to do. For example:</p>
  
  <pre><code>rm -Rf test
  </code></pre>
  
  <p>I know that the rm command will remove the test folder and that the -Rf flags will force the command to erase not just the folder but the files in it.</p>
  
  <p>But, where are the flags read/compiled??? What handles the flags? Can I, for example, write my own C/C++ program and designate different flags so that the program does different things? I hope I am asking the right questions. If not, please let me know.</p>