Hi Sami,
Thanks for the reply. Changing to $@ did not affect things. Some at stack exchange are looking at it as well HERE if you're interested in following the resolution (if there is one!).
What puzzles me is that the end argument ($@ or $*) doesn't seem to explain why if I change sys.argv from 1: to 1... it will take at least the --help option. But it still won't take mail or any other option. Or is it not really seeing "--help" but printing it because it doesn't think I got the usage right? For example, if I do ./clenotes.cmd --version, I get:
Command "-" not recognized.
Command "-" not recognized.
Command "v" not recognized.
Command "e" not recognized.
Command "r" not recognized.
Command "s" not recognized.
Command "i" not recognized.
Command "o" not recognized.
Command "n" not recognized.
" not recognized.
Looks like it's tokenizing by letter or something?
Still perplexed!