Subject: | a few help related improvements |
Hey Wade!
Hope everything is well for you :)
I have a few ideas I’d like to run by you to see if you're interested or not:
1. A way to specify the order of sub commands in hint/help.
this would allow grouping commands logically and putting utility ones like hint/help at the beginning or maybe shell at the end
2. a pre help hook
We have a case where we need to modify help based on various things and it’d be nice to avoid doing that work every time to determine and set up help text and then throw it it away on non-help executions.
3. default verbiage
We do this in every A::CD based script:
```
my $hint_blurb = "This tool supports the following commands (i.e. $0 {command} …):";
my $opts = {
'help:pre_hint' => $hint_blurb,
'help:pre_help' => "Yadda yadda yadda\n\n$hint_blurb",
```
It'd be awesome if:
- `help:pre_hint` defaulted to that.
- `help:append_pre_hint_to_prehelp => 0|1` was an option (default to true), which would append "\n\n$opts->{'help:pre_hint'}"