mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-04 12:41:42 +00:00
Rename logs -stream to logs -f
This commit is contained in:
+2
-2
@@ -1506,7 +1506,7 @@ func (cli *DockerCli) CmdDiff(args ...string) error {
|
||||
|
||||
func (cli *DockerCli) CmdLogs(args ...string) error {
|
||||
cmd := cli.Subcmd("logs", "CONTAINER", "Fetch the logs of a container")
|
||||
stream := cmd.Bool("stream", false, "Stream output")
|
||||
follow := cmd.Bool("f", false, "Follow log output")
|
||||
if err := cmd.Parse(args); err != nil {
|
||||
return nil
|
||||
}
|
||||
@@ -1530,7 +1530,7 @@ func (cli *DockerCli) CmdLogs(args ...string) error {
|
||||
v.Set("logs", "1")
|
||||
v.Set("stdout", "1")
|
||||
v.Set("stderr", "1")
|
||||
if *stream && container.State.Running {
|
||||
if *follow && container.State.Running {
|
||||
v.Set("stream", "1")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user