argtable / argtable3

A single-file, ANSI C, command-line parsing library that parses GNU-style command-line options.
http://www.argtable.org
Other
377 stars 65 forks source link

Provide public API for customizing output #49

Open tomghuang opened 4 years ago

tomghuang commented 4 years ago

@hzeba has provided a great example, which shows how to customize glossary and error message output format. However, the example has to use several private functions (such as arg_cat_optionv() and arg_print_formatted_ds()) to customize the output. It means that Argtable3 doesn't provide enough public API for this purpose.

We need to carefully open several private functions, so that developers can have enough public interface to customize their output.

jhzeba commented 4 years ago

Here's a c++ wrapper if anybody's interested.