Skip to content

Parse error for float/double with leading dot #56

@precsim

Description

@precsim

I could have misunderstood how to use clipp properly but I have found using multiple optional numeric values with leading dot leads to incorrect parsing, for example:

double a, b;
auto FOO = (command("foo").set(selected,mode::FOO),
            opt_value("a", a) & opt_value("b", b));

gives the correct values when called as "> foo 0.1 0.2", but when called as "> foo .1 .2" this results in

a = 0
b = 1.2

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