argtable / argtable3

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

Switch to FreeBSD getopt and getopt_long #56

Closed tomghuang closed 3 years ago

tomghuang commented 3 years ago

The NetBSD getopt library used in argtable3 is licensed under 4-clause BSD, which is (we've been told several times) not compatible to GPL. To resolve this non-technical issue, which does prevent some people using argtable3, we should use the FreeBSD getopt library licensed under 2-clause BSD in the next version.

We can check the following files:

tomghuang commented 3 years ago

We've switched to FreeBSD getopt library. In order to resolve file name collision between the embedded library files and the system library files, we added arg_ prefix to the embedded ones.

The FreeBSD getopt source code is coming from: