I register an Validator for my flag,like this:
static const bool nonused = google::RegisterFlagValidator(&myflag,&fooFunc);
command like this:
myprogram -myflag="a" -myflag="b"
my program relies on that each occurrence of -myflag=xxx cause a single
invoking of fooFunc(OK,It is a workaround for other things).But actually there
is a unnecessary invoking of fooFunc. for example, the library calls once
fooFunc for "a",and calls twice fooFunc for "b".That just makes my program
complex,I don't know is it a bug.I think should you change the
behaviours of the library???
Original issue reported on code.google.com by lihawl1...@gmail.com on 12 Apr 2013 at 6:04
Original issue reported on code.google.com by
lihawl1...@gmail.com
on 12 Apr 2013 at 6:04