Just thought I'd stick my beak in a bit here.

Whilst I agree that the change is trivial, I don't see why argv0 or anyone else for that matter doesn't find using a switch to set options for multiple commands a better way of performing the operation.

Sure it may break backwards compat - but you can echo this to the user. They SHOULD be using the latest version anyway - and if they don't then tough cookie.

In programming you have a framework to make your life easier and to prevent lots of duplication and headaches do you not?

Take this PHP example:

Php Code:


<?php
 function add($array) {
  for($i=0,$c=count($array);$i<$c;$i++) {
   $ret_array[] = $array[$i]++;
  }
  return $ret_array;
 }

 $increase_all = array(1,5,9);

 var_dump(add($increase_all)); //should print 0 => 2, 1 => 6, 2 => 10
?>




Why would I want to put that function over and over again in my files? So we include the file or put it into a class.

Why would I want to increase each item in my array separately when I know I could just do them all at once?