jmacdotorg / whim

A command-line multitool for sending, receiving, storing, and presenting webmentions.
MIT License
17 stars 3 forks source link

Add help/usage/version responses to the commands #14

Closed jmacdotorg closed 4 years ago

jmacdotorg commented 4 years ago

The executable should have reasonable output to --help and --version.

It should also do something reasonable if run with no subcommands at all, or invalid arguments.

jmacdotorg commented 4 years ago

Updating this given our adoption of Mojo::Command style:

When run with no arguments, the whim executable should output help/usage/version info, mojo-style, without exposing any commands that an enduser of Whim would not be interested in. (e.g. cpanify.)

The individual Whim-specific commands should properly appear in that list.

Whim-specific commands should also respond properly to whim help [command].

jmacdotorg commented 4 years ago

Some clues about "excluding" unwanted default commands here: https://mojolicious.org/perldoc/Mojolicious/Guides/Cookbook#Making-your-application-installable