Skip to content

Use cot as the binary name in usage text for project commands #679

Open

Description

@ElijahAhianyo

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 #666 (comment) for more info

Activity

  1. added
    bugSomething isn't working
    C-cliCrate: cot-cli (issues and Pull Requests related to Cot CLI)
    on Sep 28, 2026
  2. changed the title [-]Use `cot ` as the binary name in usage text for project commands[/-] [+]Use `cot` as the binary name in usage text for project commands[/+] on Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-cliCrate: cot-cli (issues and Pull Requests related to Cot CLI)bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions