Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
fix Declare::CLI SYNOPSIS to match what's designed in the source code #3
This is for the CPAN PR Challenge.
Issues #1 and #2 are basically about inconsistency between the source and doc. The source calls a handler with ($cmd, $opts, @Args), while the doc suggests user to do ($opts, $argsref). See https://metacpan.org/source/EXODIST/Declare-CLI-0.008/lib/Declare/CLI.pm#L326
Now this PR matches the doc to the source, as well as a couple of minor fixes that prevents user from trying out the SYNOPSIS. But if you would prefer the behavior in the doc (no $cmd, and use $argsref instead of @Args), I can change it and fix the source.