Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat(flags): improve help output and make deno run list tasks #25108

Merged
merged 6 commits into from
Aug 21, 2024

Conversation

crowlKats
Copy link
Member

@crowlKats crowlKats commented Aug 20, 2024

error handling for deno run in case of no config file being found needs to be improved

…, make help subcommand act like help flag, and deno run without file lists tasks
@bartlomieju bartlomieju added this to the 1.46 milestone Aug 20, 2024
@bartlomieju
Copy link
Member

Running ./target/debug/deno run prints this:

./target/debug/deno run
error: deno task couldn't find deno.json(c). See https://docs.deno.com/go/config

This message is okay, but we could make it better. It should say that no argument was provided, deno tried to look up a config file and show list of available tasks and suggest to user that they might have wanted to run deno run ./script.ts of deno run dev (task name).

@crowlKats could you look into improving that one?

Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@crowlKats crowlKats merged commit 7139337 into denoland:main Aug 21, 2024
17 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

deno --help output unusable when redirected to a file
2 participants