Now its option flag handling appears to be trying to support OSs that do not perform argument splitting. However, the handling of the rest of the arguments does not appear to do that. A better way would be to test whether argv[1] starts with a - and contains a space. In such a case, split it into words and assign them to a new argv. Then proceed with normal getopt processing.
Do this after #34 to prevent unwanted regressions.
Now its option flag handling appears to be trying to support OSs that do not perform argument splitting. However, the handling of the rest of the arguments does not appear to do that. A better way would be to test whether
argv[1]
starts with a-
and contains a space. In such a case, split it into words and assign them to a new argv. Then proceed with normal getopt processing.Do this after #34 to prevent unwanted regressions.