Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help_heading for subcommands #2289

Closed
tailhook opened this issue Jan 6, 2021 · 1 comment
Closed

help_heading for subcommands #2289

tailhook opened this issue Jan 6, 2021 · 1 comment
Labels
A-help Area: documentation, including docs.rs, readme, examples, etc... C-enhancement Category: Raise on the bar on expectations S-duplicate Status: Closed as Duplicate
Milestone

Comments

@tailhook
Copy link

tailhook commented Jan 6, 2021

It would be nice to have help_heading equivalent for the subcommands. Currently there is App::help_heading but it does something different (default help_heading for next arguments).

This is needed for the commands having a lot of of subcommands, to show you one example, here is a snippet from virsh (command-line tool for libvirt):

 Domain Management (help keyword 'domain')
    attach-device                  attach device from an XML file
    attach-disk                    attach disk device
    attach-interface               attach network interface
    [.. snip ..]
 Domain Monitoring (help keyword 'monitor')
    domblkerror                    Show errors on block devices
    domblkinfo                     domain block device size information
    domblklist                     list all domain blocks
    domblkstat                     get device block stats for a domain
    domcontrol                     domain control interface state
    domif-getlink                  get link state of a virtual interface
    [.. snip ..]
 Host and Hypervisor (help keyword 'host')
    allocpages                     Manipulate pages pool size
    capabilities                   capabilities
    cpu-baseline                   compute baseline CPU
    cpu-compare                    compare host CPU with a CPU described by an XML file
    cpu-models                     CPU models
    [.. snip ..]
@tailhook tailhook added the C-bug Category: Updating dependencies label Jan 6, 2021
@pksunkara pksunkara added A-help Area: documentation, including docs.rs, readme, examples, etc... T: new feature and removed C-bug Category: Updating dependencies labels Jan 7, 2021
@pksunkara pksunkara added this to the 3.1 milestone Jan 7, 2021
@epage epage added C-enhancement Category: Raise on the bar on expectations and removed T: new feature labels Dec 8, 2021
@epage
Copy link
Member

epage commented Dec 9, 2021

Looks like this is a duplicate of #1553 . If this is by mistake, feel free to comment, letting us know!

@epage epage closed this as completed Dec 9, 2021
@epage epage added the S-duplicate Status: Closed as Duplicate label Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-help Area: documentation, including docs.rs, readme, examples, etc... C-enhancement Category: Raise on the bar on expectations S-duplicate Status: Closed as Duplicate
Projects
None yet
Development

No branches or pull requests

3 participants