Skip to content

[BUG] Absolute paths no longer work as input #1174

Closed
@alexreinking

Description

@alexreinking

Describe the bug
After the following commit, absolute paths are misinterpreted as unrecognized flags.

16686c1

To Reproduce

~$ git clone https://github.com/hsutter/cppfront
~$ cd cppfront
~/cppfront$ clang++-19 -o cppfront -O2 -std=c++20 source/cppfront.cpp
~/cppfront$ ./cppfront "$PWD/regression-tests/pure2-enum.cpp2"
/home/alex/cppfront/regression-tests/pure2-enum.cpp2 - unknown compiler flag name (try /help)

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions