Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could you call once validatefunc for each occurrence of flag on terminal(cmd)? #66

Open
GoogleCodeExporter opened this issue Mar 13, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 12 Apr 2013 at 6:04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant