oclif / core

Node.js Open CLI Framework. Built by Salesforce.

Home Page:https://oclif.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Command summary displays as topic summary when nested below topic without summary.

rbayliss opened this issue · comments

Describe the bug
Given a command in a subdirectory of the main commands directory, when I add either a summary property, or a description property, that text then appears as the topic summary at the top level.

To Reproduce
Steps to reproduce the behavior:

  1. Setup @oclif/core add add @oclif/plugin-help.
  2. Create a command class on bar.ts in a subdirectory foo and give it a static summary property.
  3. Run your binary without specifying any particular command.
  4. Observe the the foo topic prints with the summary you added to the bar command.

Expected behavior
The foo topic has no summary.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • OS & version: OSX Sonoma
  • Shell/terminal & version: zsh 5.9

You can set topic descriptions in the package.json. See https://oclif.io/docs/topics