From 0d26cbf5b7c5cad106f9afb321bb8c4ba8832dc9 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Sun, 19 Apr 2020 19:51:12 +0200 Subject: [PATCH] yamldocs: add description to base command Currently the documentation uses a special case for this command, so adding a description to the YAML in order to remove that special case. Signed-off-by: Sebastiaan van Stijn (cherry picked from commit c4798a9daad840fba46adf0c5d03606b9a7275a9) Signed-off-by: Sebastiaan van Stijn --- docs/yaml/generate.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/yaml/generate.go b/docs/yaml/generate.go index 7244f02e69..ff451c1920 100644 --- a/docs/yaml/generate.go +++ b/docs/yaml/generate.go @@ -21,7 +21,10 @@ func generateCliYaml(opts *options) error { if err != nil { return err } - cmd := &cobra.Command{Use: "docker"} + cmd := &cobra.Command{ + Use: "docker [OPTIONS] COMMAND [ARG...]", + Short: "The base command for the Docker CLI.", + } commands.AddCommands(cmd, dockerCli) disableFlagsInUseLine(cmd) source := filepath.Join(opts.source, descriptionSourcePath)