title: Capitalization with Command Line Inputs [C++ 98][g++]
body: <p>I'm having an issue with command line inputs. Here's a simple program that will only print out the last command line argument.</p>
  
  <pre><code>#include &lt;iostream&gt;
  int main(int argc, char* argv[])
  {
      std::cout &lt;&lt; argv[argc-1] &lt;&lt; std::endl;
  }
  </code></pre>
  
  <p>But here are some outputs from the program with the following command line inputs.</p>
  
  <pre><code>C:\Users\Jacob\Desktop&gt;test.exe "/os"
  /OS
  C:\Users\Jacob\Desktop&gt;test.exe "/Os"
  /OS
  C:\Users\Jacob\Desktop&gt;test.exe "/oS"
  /OS
  C:\Users\Jacob\Desktop&gt;test.exe "/OS"
  /OS
  C:\Users\Jacob\Desktop&gt;test.exe "/hp"
  /hp
  C:\Users\Jacob\Desktop&gt;test.exe "/hP"
  /hp
  C:\Users\Jacob\Desktop&gt;test.exe "/Hp"
  /hp
  C:\Users\Jacob\Desktop&gt;test.exe "/HP"
  /hp
  </code></pre>
  
  <p>This seems like a small issue, but this has bad results on a project that I'm working on. Is this a weird problem? Is there a solution to this problem?</p>