perlancar / perl-Getopt-Long-More

1 stars 1 forks source link

More stuff: add the ability to die inside coderef destination #34

Open perlancar opened 3 years ago

perlancar commented 3 years ago

This is another Getopt::Long annoyance I sometimes encounter. When calling the coderef destination, Getopt::Long does this inside an eval { ... } block, and exception thrown inside the coderef is always trapped. Sometimes we do want to die from the coderef destination.