A Debian user noticed that lwp-rget prints the help output twice with
the '--help' argument.

The problem is that when usage is invoked as the callback for the
'help' option, it outputs everything, and then GetOptions traps the
'die', makes GetOptions return a failure indicator, and the '|| usage'
after GetOptions runs.

The fix is simple, I think---change the callback for the 'help' option
to be a simple 'die', and the error that is returned from GetOptions
will cause 'usage' to fire.

Mike.

Reply via email to