Skip to content

Prefix flags with disable_ #291

@adisidev

Description

@adisidev

arguments.add_argument("-S", "--simplify_and_densify")
.help(
"Boolean: Enable iterative simplification and densification of polygons")
.default_value(true)
.implicit_value(false);

For example, in the above code, the flag name is --simplify_and_densify but passing the flag actually disables this action. We should change the title to disable and make the corresponding changes in implicit and default values, and in reading the value like so:

  args.simplify = !arguments.get<bool>("--disable_simplify_and_densify");

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