-
Committer:
Seth Forshee
-
Date:
2014-03-03 20:01:32 UTC
-
Revision ID:
seth.forshee@canonical.com-20140303200132-m2h3ewcb1gmxj393
powerd-cli: Use help text from commands
Rather than collecting the help text for various commands all in
one place, use the data from struc cli_cmd. Also make numerous
enhancments to the help command and its output:
* Automatically format the help text
* Use terminal width for wrapping
* Support 'powerd-cli help <command>' syntax to get more help
on a specific command
Also extend the information in struct cli_cmd to supply detailed
information for each command's options.