Output of gws <service> <resource> --help provides wrong Usage: format, omitting the <service> part

Open Beginner friendly
#839 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
rust
Domain
cli

Research direction

Start by running the reported gws sheets --help and gws sheets spreadsheets --help commands and trace the CLI help-generation entry point that formats their Usage lines. Done means each command includes the complete command path, such as gws sheets [OPTIONS] <COMMAND> and gws sheets spreadsheets [OPTIONS] <COMMAND>, with tests covering the corrected output.

Written by the indexing model from the issue text.

Description

Context

$ gws --version
gws 0.22.5
This is not an officially supported Google product.

How to reproduce

$ gws sheets --help
Reads and writes Google Sheets.

Usage: gws [OPTIONS] <COMMAND>

Commands:
  spreadsheets  Operations on the 'spreadsheets' resource

This should already be
Usage: gws sheets [OPTIONS] <COMMAND>

Then, for gws sheets spreadsheet --help
the output is

$ gws sheets spreadsheets --help
Operations on the 'spreadsheets' resource

Usage: gws spreadsheets [OPTIONS] <COMMAND>

gws spreadsheets is wrong.

❗This can confuse humans, it definately did confuse my gemma4-14b (ollama via Hermes Agent).

Dominant language
Rust
Stars
31.1k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from googleworkspace/cli

All issues in googleworkspace/cli

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.