mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-09-05 00:50:50 +02:00
line parser does not recognize arguments that are both in the same word and also space separated; this is easy to do from, e.g., a python interpreter by setting an option as a single string as in "-d null"; it is harder to do from the command line, but can be done with quotes, as in 'magic "-d null"'. The utils/args.c routine parses this with ArgStr(), which recognizes two cases, one in which the option is split across two arguments, and one in which the option is one word without space separation. I modified ArgStr() to accept a third syntax in which the option is in a single argument but is also space-separated. This simply detects a space in the third character position and moves forward to the next non-space character and returns that position.
2 lines
8 B
Plaintext
2 lines
8 B
Plaintext
8.3.643
|