Skip to content
This repository has been archived by the owner on Jan 1, 2022. It is now read-only.

help_heading for subcommands #172

Open
epage opened this issue Dec 6, 2021 · 0 comments
Open

help_heading for subcommands #172

epage opened this issue Dec 6, 2021 · 0 comments

Comments

@epage
Copy link
Owner

epage commented Dec 6, 2021

Issue by tailhook
Wednesday Jan 06, 2021 at 14:30 GMT
Originally opened as clap-rs/clap#2289


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 ..]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant