dparrish / libcli

Libcli provides a shared library for including a Cisco-like command-line interface into other software. It's a telnet interface which supports command-line editing, history, authentication and callbacks for a user-definable function tree.
https://dparrish.com/link/libcli
GNU Lesser General Public License v2.1
289 stars 143 forks source link

Rework slightly extended help - new comand for cleaner use #50

Closed RobSanders closed 4 years ago

RobSanders commented 4 years ago

Reworked internals of parsing help messages slightly on how 'helpstring' gets broken apart. Added new method to add 'help' text to an existing optarg. Syntax is slightly different than existing API calls, but did not want to alter cli_register_optarg() api to change return value.