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

Missing some information about the differences between v2 and v3 #58

Open claudix opened 3 years ago

claudix commented 3 years ago

I've been using argtable2 for a very long time and recently I've came across with this project. It'd be nice to clarify some points in the docs:

The amalgamation feature is a +1 feature, so thanks for that!

tomghuang commented 3 years ago

Hi @claudix ,

From users' point of view, the major differences are:

I believe you can still use most of the v2 APIs in v3. However, v3 doesn't promise to be compatible with v2, so I can have more freedom to shape v3 APIs.

v3 is still based on getopt, so you're right, maybe it is not thread-safe. However, I never use Argtable3 in multi-thread scenarios, so I never think about making v3 a thread-safe library. If there's such a use case, maybe we can dedicate a thread to Argtable3, and all the other threads can call the service exposed by the Argtable3 thread to parse commands.