Merge pull request #2454 from thaJeztah/fix_yaml_description

yamldocs: add description to base command
This commit is contained in:
Silvin Lubecki 2020-04-20 11:41:09 +02:00 committed by GitHub
commit 9ac6673740
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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)