diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2018-12-03 06:27:02 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-03 06:27:02 -0800 |
commit | 5bb66a47a46ea3cd66a86889d39b57bb28256c7a (patch) | |
tree | a4b44ac761ecaf3448f138471779813631d45e5c | |
parent | 41f250c4861b9950b63dc7501211d13b6e0bd5ed (diff) | |
parent | 87df1ce01f19399f551e164542c5ed969eec1d20 (diff) | |
download | podman-5bb66a47a46ea3cd66a86889d39b57bb28256c7a.tar.gz podman-5bb66a47a46ea3cd66a86889d39b57bb28256c7a.tar.bz2 podman-5bb66a47a46ea3cd66a86889d39b57bb28256c7a.zip |
Merge pull request #1914 from baude/logslatest
Add short-option handling to logs
-rw-r--r-- | cmd/podman/logs.go | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/cmd/podman/logs.go b/cmd/podman/logs.go index 84aca5e61..75947c34e 100644 --- a/cmd/podman/logs.go +++ b/cmd/podman/logs.go @@ -40,14 +40,15 @@ var ( logsDescription = "The podman logs command batch-retrieves whatever logs are present for a container at the time of execution. This does not guarantee execution" + "order when combined with podman run (i.e. your run may not have generated any logs at the time you execute podman logs" logsCommand = cli.Command{ - Name: "logs", - Usage: "Fetch the logs of a container", - Description: logsDescription, - Flags: sortFlags(logsFlags), - Action: logsCmd, - ArgsUsage: "CONTAINER", - SkipArgReorder: true, - OnUsageError: usageErrorHandler, + Name: "logs", + Usage: "Fetch the logs of a container", + Description: logsDescription, + Flags: sortFlags(logsFlags), + Action: logsCmd, + ArgsUsage: "CONTAINER", + SkipArgReorder: true, + OnUsageError: usageErrorHandler, + UseShortOptionHandling: true, } ) |