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

char* getOptionValue(string option) called instead of bool getOption(string option) #34

Open
michischramm opened this issue Mar 26, 2020 · 0 comments

Comments

@michischramm
Copy link

michischramm commented Mar 26, 2020

Going through the code, I wondered in the ligra.h file why the lines 475 - 478 call the function char* getOptionValue(string option) and not bool getOption(string option) and why this works. After a while I undestood this works because the last argument is always the file, thus after every option is always another argument. I don't think this is wanted, because the function bool getOption(string option) exists, too.

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

No branches or pull requests

1 participant