op_get: support getting argument in next argv item
commit291056b68d2c5f6f9e8dbf9cdef063f5c3605508
authorrofl0r <rofl0r@users.noreply.github.com>
Fri, 23 Oct 2020 17:14:39 +0000 (23 18:14 +0100)
committerrofl0r <rofl0r@users.noreply.github.com>
Fri, 23 Oct 2020 17:14:39 +0000 (23 18:14 +0100)
treefbbbd96597f89266209bd0ad3ee06567404b55a3
parent1f6a87cf578fa4f648a2d18ae9627655087000ed
op_get: support getting argument in next argv item

previously arguments needed to be passed with an equals sign like so:
--foo=bar, now also --foo bar is supported.

note that from a static link bloat perspective it's not optimal to add a
dependency on strcmp(), however we do not actually endorse usage of the
optparser anyway, as its NIH design is quite suboptimal and the result of
a lack of understanding of getopt(), at the time it was written.
src/optparser/op_get.c