title: Change a command line argument argv
body: <p>I would like to modify or erase a command-line argument in <code>argv</code>.</p>
  
  <pre><code>//Somewhere near the top of main()
  
  bool itemFound(false);
  for(int i=1; i&lt;argc; ++i) {
    if(argv[i] == "--item") {
      itemFound = true;
      //And remove this item from the list
      argv[i] = "      ";   //Try to remove be just inserting spaces over the arg
    }
  }
  
  //Now, use argc/argv as normal, knowing that --item is not in there
  </code></pre>
  
  <p>However, <code>--item</code> is still contained in the list.</p>
  
  <p>What's the best way to do this?</p>