getopthelp: Added argidx field

This field is set to the first non-option argument index in argv. So
that the caller can reach its mandatory arguments. It is equivalent to
optind for getopt.

Signed-off-by: Celelibi <celelibi@gmail.com>