opt: fix reporting of arguments when multiple arguments exist.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 5 Oct 2010 05:26:19 +0000 (15:56 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 5 Oct 2010 05:26:19 +0000 (15:56 +1030)
commitb4cf10d83d46b50468ae52fccaeb99a793505467
treed8061b3f400cf5d1ff851311bad1af00ddc4b8b3
parentd89e5744f30b584ac4909ce1164af1289c41359b
opt: fix reporting of arguments when multiple arguments exist.

longidx is not updated in this case.  We should open-code option parsing.
ccan/opt/opt.c
ccan/opt/test/run-correct-reporting.c [new file with mode: 0644]