Skip to content

Does usage have to be able to show a single command? #57

Description

Given the following structure, I thought it’d be useful to show the commands similarly in usage. However, this would make it rather odd & difficult when showing help for a single command (as opposed to a whole group), especially when the command doesn’t use one of the arguments. Would it hurt if it showed help for the whole group instead?

Single-day commands
    --at
    {SINGLE_DAY_ALIAS}
    --category
  show
  add
    --note
  edit
Range commands
    --from
    --to
    {RANGE_ALIAS}
    --category
  log
    --[no-]pager
  search
Category commands
    --category[-name]
    --category-description
  add-category
  set-category-description
  rename-category
Arg-less commands
  order-categories
  list-categories
copy
  --from
  --to
  --category
Stup-info commands
  usage
    {COMMAND}
    --[no-]pager
  version

--category (& given my other effort, later also --[no-]pager) could also be as a general argument, since only arg-less & stup-info commands don’t use it; what do you think about this? And what about the general idea of structuring the help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions