Merge pull request #1335 from gtardif/logs_f

Allow `docker compose logs -f` for compatibility
This commit is contained in:
Nicolas De loof 2021-02-22 16:22:59 +01:00 committed by GitHub
commit 189466ca81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ func logsCommand(p *projectOptions, contextType string) *cobra.Command {
},
}
flags := logsCmd.Flags()
flags.BoolVar(&opts.follow, "follow", false, "Follow log output.")
flags.BoolVarP(&opts.follow, "follow", "f", false, "Follow log output.")
flags.BoolVar(&opts.noColor, "no-color", false, "Produce monochrome output.")
flags.BoolVar(&opts.noPrefix, "no-log-prefix", false, "Don't print prefix in logs.")
flags.BoolVarP(&opts.timestamps, "timestamps", "t", false, "Show timestamps.")