misc/arg: On multiple options we now call the callback accordingly.
commitfa62f5064f3d9d2d6da8b79c94ff003658f7bad7
authorNicholas Niro <nik_89@xroutine.net>
Wed, 21 May 2014 06:27:44 +0000 (21 02:27 -0400)
committerNicholas Niro <nik_89@xroutine.net>
Wed, 21 May 2014 06:27:44 +0000 (21 02:27 -0400)
treeb7af5954122d463279ccacbbe1497c19112e3aa3
parent0a0c57c7e46eb27a9570e1e72e8a2939a9646f81
misc/arg: On multiple options we now call the callback accordingly.

Before, if we had say the option -v (for verbose) and we added
more than just one : -vvvv. The callback was only called once
thus it was impossible for the end program to count the number
of 'v' used in the option. This commit fixes this issue and calls
the callback for every options it encounter. So for example, if
the option : -vvvv is used, the callback will be called four times.
src/misc/arg.c