Skip to content

nim sometask main.nonexistant works even if main.nonexistant doesn't exist #17600

Open
@timotheecour

Description

@timotheecour

Example

main.nims:

task foo, "some foo":
  echo "in task foo"

nim foo main.nims # case 1
nim foo main.nonexistant # case2
nim foo main # case3

ditto with things like help

Current Output

these all work and run the foo task

Expected Output

only case1 should work
case2 is a clear bug, since main.nonexistant doesn't exist
case3 is IMO a bug, IMO this shouldn't be legal, it's too loose (given that task foo is unconstrained and, after #17596, the extension is unconstrained too, including no extension)

Additional Information

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions