summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorAbhijeet Kasurde <akasurde@redhat.com>2020-02-19 17:14:20 +0530
committerAbhijeet Kasurde <akasurde@redhat.com>2020-02-19 17:14:20 +0530
commit7f411cb325986e88f1b04c2fc2a0e17a9e283ddf (patch)
tree997286c76812ee9760bb052b54cc4a134d7f0338 /cmd
parent88a8d9e3fa19cf16b19716cb03fa457d98056010 (diff)
downloadpodman-7f411cb325986e88f1b04c2fc2a0e17a9e283ddf.tar.gz
podman-7f411cb325986e88f1b04c2fc2a0e17a9e283ddf.tar.bz2
podman-7f411cb325986e88f1b04c2fc2a0e17a9e283ddf.zip
Review comments
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/cliconfig/config.go2
-rw-r--r--cmd/podman/logs.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/cmd/podman/cliconfig/config.go b/cmd/podman/cliconfig/config.go
index d9b42b99f..ccc30c603 100644
--- a/cmd/podman/cliconfig/config.go
+++ b/cmd/podman/cliconfig/config.go
@@ -260,7 +260,7 @@ type LogsValues struct {
Tail int64
Timestamps bool
Latest bool
- UseNames bool
+ UseName bool
}
type MountValues struct {
diff --git a/cmd/podman/logs.go b/cmd/podman/logs.go
index 291347adb..4bb26cd07 100644
--- a/cmd/podman/logs.go
+++ b/cmd/podman/logs.go
@@ -55,7 +55,7 @@ func init() {
flags.StringVar(&logsCommand.Since, "since", "", "Show logs since TIMESTAMP")
flags.Int64Var(&logsCommand.Tail, "tail", -1, "Output the specified number of LINES at the end of the logs. Defaults to -1, which prints all lines")
flags.BoolVarP(&logsCommand.Timestamps, "timestamps", "t", false, "Output the timestamps in the log")
- flags.BoolVarP(&logsCommand.UseNames, "names", "n", false, "Output the container name in the log")
+ flags.BoolVarP(&logsCommand.UseName, "names", "n", false, "Output the container name in the log")
markFlagHidden(flags, "details")
flags.SetInterspersed(false)
@@ -87,7 +87,7 @@ func logsCmd(c *cliconfig.LogsValues) error {
Since: sinceTime,
Tail: c.Tail,
Timestamps: c.Timestamps,
- UseNames: c.UseNames,
+ UseName: c.UseName,
}
return runtime.Log(c, options)
}