Hi Andrew, all, It is interesting news to hear that the Gnulib module 'argp' is used as a standalone library for Cygwin [1], and that a separate package with the same purpose exists [2] for other platforms (musl, *BSD, Haiku) [3].
I would suggest to create this library, let's call it 'libargp' for the moment, as an installable package (distributed via ftp.gnu.org), that reuses the code from Gnulib and the documentation from glibc. Like GNU libiconv and GNU libintl, that replicate part of the glibc functionality for other platforms and thus make the API portable, it would make <argp.h> usable by packages, without use of gnulib-tool and without bundling the source code. The technique for doing such cannibalizations of part of Gnulib is well established (see the implementation of libintl in GNU gettext, and GNU libunistring as well). Andrew, would you volunteer to co-develop / co-maintain this library? We could then also put the known bug [4] onto the TODO list for this library. Bruno [1] https://cygwin.com/cgit/cygwin-packages/libargp/ [2] https://github.com/ericonr/argp-standalone [3] https://repology.org/project/argp-standalone/versions [4] https://lists.gnu.org/archive/html/bug-gnulib/2024-04/msg00179.html
