From b699aee91f90b8390dfa6e8ef58e983fc8c4f3e5 Mon Sep 17 00:00:00 2001 From: Silas Sewell Date: Tue, 3 Dec 2013 20:35:22 +0000 Subject: [PATCH] Rename logs -stream to logs -f --- commands.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands.go b/commands.go index 699be1e4cf..c024333a65 100644 --- a/commands.go +++ b/commands.go @@ -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") }