mirror of https://github.com/docker/cli.git
Disable adding [flags] to UseLine in man pages
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
c01f642800
commit
5b4af39b8d
|
@ -34,6 +34,7 @@ func generateManPages(opts *options) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd.DisableAutoGenTag = true
|
cmd.DisableAutoGenTag = true
|
||||||
|
cmd.DisableFlagsInUseLine = true
|
||||||
return doc.GenManTreeFromOpts(cmd, doc.GenManTreeOptions{
|
return doc.GenManTreeFromOpts(cmd, doc.GenManTreeOptions{
|
||||||
Header: header,
|
Header: header,
|
||||||
Path: opts.target,
|
Path: opts.target,
|
||||||
|
@ -43,6 +44,7 @@ func generateManPages(opts *options) error {
|
||||||
|
|
||||||
func loadLongDescription(cmd *cobra.Command, path string) error {
|
func loadLongDescription(cmd *cobra.Command, path string) error {
|
||||||
for _, cmd := range cmd.Commands() {
|
for _, cmd := range cmd.Commands() {
|
||||||
|
cmd.DisableFlagsInUseLine = true
|
||||||
if cmd.Name() == "" {
|
if cmd.Name() == "" {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue