Rename logs -stream to logs -f
This commit is contained in:
parent
3ddbb36a84
commit
b699aee91f
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue