Use `cot` as the binary name in usage text for project commands
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 70/100
Research direction
Start by comparing how project commands build their usage text on argument errors with how --help displays the binary name; the issue does not name specific files or tests. Reproduce the example with a project binary named m4txblog and run cot collect-static without the required directory. Done when the error usage line says cot collect-static <dir> while help output remains correct.
Written by the indexing model from the issue text.
Description
When a project command ran with cot command fails because of invalid arguments, the usage line shows the project's binary name instead of cot. For example, in a project whose binary is m4txblog:
❯ cot collect-static
error: the following required arguments were not provided:
<dir>
Usage: m4txblog collect-static <dir>
For more information, try '--help'.
However, --help correctly shows cot:
❯ cot collect-static --help
Collects all static files into a static directory
Usage: cot collect-static <dir>
Arguments:
<dir> The directory to collect the static files into
Options:
-h, --help Print help
Ideally, the error output should also use cot as the binary name, since that is the command the user actually ran.
See https://github.com/cot-rs/cot/pull/666#issuecomment-5873535644 for more info
- Dominant language
- Rust
- Stars
- 1.1k
- Forks
- 57
- Avg merge
- 17h 39m
- Merged PRs (30d)
- 12
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cot-rs/cot
-
Difficulty 1/5 Under an hour Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
Add changelog pageOpenA-docs
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
A-docs
Difficulty 2/5 Half a day Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
A-docs
Difficulty 2/5 Half a day Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Add Routing docsMay be free again @ElijahAhianyo claimed this 43 days ago, and no pull request is open. Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 Half a day Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
code-quality parser
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
eventflux-io/eventflux#218 ·
Maintainers usually reply within 1 day
-
StartSso docs say an option requires the built-in AuthnRequest renderer, which is now the only oneOpendocumentation needs-triage
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
marketing
Difficulty 2/5 Half a day Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
Maintainers usually reply within 1 day