Skip to content

CLI option --taskfile seems to be ignored #2692

@rseichter

Description

@rseichter

Description

My attempts to specify a custom file name using --taskfile or -t result in "No Taskfile found" errors:

$ task --version
3.48.0
$ uname -v
Darwin Kernel Version 25.2.0: Tue Nov 18 21:09:34 PST 2025; root:xnu-12377.61.12~1/RELEASE_X86_64
$ ls -l *.yml
-rw-r--r-- 1 ralph staff 638 Feb 16 02:26 foo.yml
$ task --taskfile foo.yml
task: No Taskfile found at ""
task: Failed to run task "default": exit status 100

As you can see the file exists and is world-readable, so I am left with the impression that --taskfile is being ignored?

Version

3.48.0

Operating system

macOS 26.2

Experiments Enabled

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedIssues that could benefit from members of the community contributing their expertise or experience.os: macosIssues that affect users on macOS.state: needs triageWaiting to be triaged by a maintainer.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions