Skip to content

pre defined options usage, help, version

urbanjost edited this page Jan 18, 2020 · 1 revision

At the risk of overbuilding this, print_dictionary(3f) is now deprecated and check_commandline_status(3f) should be called after the READ of the value returned by get_commandline(3f). It has two optional options called HELP_TEXT and VERSION_TEXT. All programs have the options --usage, --help, and --version pre-defined and reserved. --usage will work for anyone calling check_commandline_status(3f) and --help and --version will display the optional text passed in as HELP_TEXT and VERSION_TEXT.

This means any programs created with M_CLI will have the same interface for getting help and version information. Opinions?

Clone this wiki locally