cue icon indicating copy to clipboard operation
cue copied to clipboard

cue cmd --help / cue help cmd discrepencies

Open rawkode opened this issue 7 months ago • 1 comments

What version of CUE are you using (cue version)?

0.12.0

Does this issue reproduce with the latest stable release?

Yes

What did you do?

cue cmd --help

What did you expect to see?

List of cue commands available to run

What did you see instead?

Help for authoring cue commands


Notes:

I would like cue cmd --help to show the available cue commands, and not the authoring help. The list should be simple and concise.

I would expect cue help commands to include the extra help, as it does now.

rawkode avatar May 01 '25 16:05 rawkode

Thanks for filing this bug! Just to be clear, you're suggesting two changes:

  • cue cmd -h should show available commands from _tool.cue files, like cue help cmd
  • cue cmd -h and cue help cmd should be much shorter, pointing to cue help commands as a longer help text about how to write custom commands

Ultimately, cue cmd -h and cue help cmd should be equivalent, so the fact that they are not (the first point above) is clearly a bug.

mvdan avatar May 01 '25 17:05 mvdan