bfgroup / Lyra

A simple to use, composable, command line parser for C++ 11 and beyond
https://bfgroup.github.io/Lyra/
Boost Software License 1.0
471 stars 56 forks source link

ignore help of subcommands #63

Closed Miezhiko closed 1 year ago

Miezhiko commented 2 years ago

I have sub-commands with own arguments and I see them if I do app foo --help

but I don't want to see those when I type foo --help I only want to see that sub-command itself exists, is it currently possible to do?

ljusten commented 1 year ago

+1 the help gets very messy if there are lots of subcommands. The Go package Cobra only shows the command and a short description, similar to what op suggests, e.g.

Available Commands: cmd1 Runs cmd1 cmd2 Runs cmd2