aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman/logs.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-12-01 17:10:30 -0600
committerbaude <bbaude@redhat.com>2018-12-01 19:09:40 -0600
commit87df1ce01f19399f551e164542c5ed969eec1d20 (patch)
treea4b44ac761ecaf3448f138471779813631d45e5c /cmd/podman/logs.go
parent41f250c4861b9950b63dc7501211d13b6e0bd5ed (diff)
downloadpodman-87df1ce01f19399f551e164542c5ed969eec1d20.tar.gz
podman-87df1ce01f19399f551e164542c5ed969eec1d20.tar.bz2
podman-87df1ce01f19399f551e164542c5ed969eec1d20.zip
Add short-option handling to logs
podman logs already supports the latest command line switch. users should be able to use the short-options combined (i.e. podman logs -lf). Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'cmd/podman/logs.go')
-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,
}
)