in reply to Re: getopts and duplicit params
in thread getopts and duplicit params

That's exactly what I'm trying to avoid. I need to end the script rather than overwriting by the last appearance of the param.

Replies are listed 'Best First'.
Re^3: getopts and duplicit params
by Anonymous Monk on Mar 13, 2013 at 18:31 UTC
    That goes against the general philosophy of running stuff from a shell command line and allowing users to customize their defaults. Users are free to set up aliases with their most commonly used flags and allowing duplicate flags / taking that last flag allows them to still access all the command line options. Flags for default options exist for this reason.