Skip to content

Can't pass flags containing an equals sign(=) with multiple executables #495

@LKedward

Description

@LKedward

I was trying to pass the -fsanitize=address flag to gfortran, but fpm/M_CLI2 is treating address as an unnamed parameter.

To reproduce:

$ fpm new test && cd test
$ cp app/main.f90 app/main2.f90
$ fpm run --flag "-fsanitize=address"

Output:

 + mkdir -p build/dependencies
fpm::run<ERROR> specified names "address" not found.

 Available names:
main2  test
STOP 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions