You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@landley If I was able to (by copying a lot of code from https://github.com/skeeto/optparse, which is public domain), replace the use of the non-standard GNU getopt_long{,_only}() functions in the getopt command, would you be in favour of that? If so, I'll give that a shot.
The text was updated successfully, but these errors were encountered:
I have no idea what to do about getopt, I don't use it and the shell builtin "getopts" is different.
It's not the "it's in glibc and musl and uclibc and bionic and macos and bsd but posix hasn't noticed yet" functions I care about, it's that lib/args.c is a complete set of parsing logic and this pulls in a whole second set of parsing logic with zero code reuse.
I guess since the toybox parsing is done by pregenerating #defines before actual compilation it wouldn't really be doable to use the arguments to getopt to build something that toybox's parsing could handle right?
@landley If I was able to (by copying a lot of code from https://github.com/skeeto/optparse, which is public domain), replace the use of the non-standard GNU getopt_long{,_only}() functions in the getopt command, would you be in favour of that? If so, I'll give that a shot.
The text was updated successfully, but these errors were encountered: