diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-03-01 08:43:50 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-01 08:43:50 -0500 |
commit | 8bdda91ab738d634528259581c8adebe1db007b4 (patch) | |
tree | 59af32859f166fb3ae84bbbe1b46126e3c950577 /cmd/podman | |
parent | 87d22e101465fa9e8d25653918328e768a92aa71 (diff) | |
parent | 40c6192e9e3da7f2f3f54365c89b4b837ed74fd8 (diff) | |
download | podman-8bdda91ab738d634528259581c8adebe1db007b4.tar.gz podman-8bdda91ab738d634528259581c8adebe1db007b4.tar.bz2 podman-8bdda91ab738d634528259581c8adebe1db007b4.zip |
Merge pull request #13362 from keonchennl/pod-logs-add-flag
Add the names flag for pod logs
Diffstat (limited to 'cmd/podman')
-rw-r--r-- | cmd/podman/pods/logs.go | 1 |
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") |