Skip to content

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

@michischramm

Description

@michischramm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions