in reply to Triple syntax getopt

*sigh* Nothing's perfect. I was working on something else when I discovered that the code recognizes -demo as equivalent to -d=emo. I have updated the code with a fix, it sorts the arguments by length so -demo is seen first. This of course means you can't have -d=emo in the adjoined format. The impact of this can of course be softened by picking your switches wisely.

  • Avoid similar switches, user's appreciate this ++.
  • If similar switches do not accept values there is no spoon^H^H^H^H^Hproblem.
  • GNU style --long-options also pose no problem.
  • I of course welcome any suggestions for handling the clash better.

    --
    perl -pe "s/\b;([st])/'\1/mg"