aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2018-12-03 06:27:02 -0800
committerGitHub <noreply@github.com>2018-12-03 06:27:02 -0800
commit5bb66a47a46ea3cd66a86889d39b57bb28256c7a (patch)
treea4b44ac761ecaf3448f138471779813631d45e5c
parent41f250c4861b9950b63dc7501211d13b6e0bd5ed (diff)
parent87df1ce01f19399f551e164542c5ed969eec1d20 (diff)
downloadpodman-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.go17
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,
}
)