Open janstary opened 6 months ago
See the parse_gopts_and_fopts()
function in sox.c
.
The precise ordering of the listing of --long-opts matters,
as they are later recognized by their index in the listing.
So for example case 17
means --single-threaded
,
because it is the seventeenth --long-option.
Obviously, this needs to go.
SoX uses it's own
getopt.c
to parse the options, both global to sox and local to the effects and files. Can they be processed with the standard getopt(3)?The interface sucks a bit: for example, -n is not an option but an input or output file.