summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorXueyuan Chen <x.chen-47@student.tudelft.nl>2022-02-26 23:07:25 +0100
committerXueyuan Chen <X.Chen-47@student.tudelft.nl>2022-03-01 00:18:39 +0100
commit40c6192e9e3da7f2f3f54365c89b4b837ed74fd8 (patch)
treeb3e4505fbcac2d9e9f2ec99bf4401d56483f7546 /cmd
parentc39dffe83db9fa3cfa6897b971956821f1bbcce2 (diff)
downloadpodman-40c6192e9e3da7f2f3f54365c89b4b837ed74fd8.tar.gz
podman-40c6192e9e3da7f2f3f54365c89b4b837ed74fd8.tar.bz2
podman-40c6192e9e3da7f2f3f54365c89b4b837ed74fd8.zip
Add the names flag for pod logs
Fixes containers#13261 Signed-off-by: Xueyuan Chen <X.Chen-47@student.tudelft.nl>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/pods/logs.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/podman/pods/logs.go b/cmd/podman/pods/logs.go
index 1b00f047e..e35b48bed 100644
--- a/cmd/podman/pods/logs.go
+++ b/cmd/podman/pods/logs.go
@@ -87,6 +87,7 @@ func logsFlags(cmd *cobra.Command) {
flags.Int64Var(&logsPodOptions.Tail, tailFlagName, -1, "Output the specified number of LINES at the end of the logs.")
_ = cmd.RegisterFlagCompletionFunc(tailFlagName, completion.AutocompleteNone)
+ flags.BoolVarP(&logsPodOptions.Names, "names", "n", false, "Output container names instead of container IDs in the log")
flags.BoolVarP(&logsPodOptions.Timestamps, "timestamps", "t", false, "Output the timestamps in the log")
flags.SetInterspersed(false)
_ = flags.MarkHidden("details")