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 an option to use getopt_long_only #57

Closed tomghuang closed 3 years ago

tomghuang commented 3 years ago

Some popular language runtime or frameworks prefer using a single - character for long options. For example, in Tcl/Tk, all long options start with a single - character and no short options are used.

Currently argtable3 only uses getopt_long to parse arguments. We should provide an API or a compile-time option to make argtable3 use getopt_long_only, so people can use a single - character before long options.