mirror of
https://github.com/containers/podman.git
synced 2025-06-21 01:19:15 +08:00
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>
This commit is contained in:
@ -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" +
|
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"
|
"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{
|
logsCommand = cli.Command{
|
||||||
Name: "logs",
|
Name: "logs",
|
||||||
Usage: "Fetch the logs of a container",
|
Usage: "Fetch the logs of a container",
|
||||||
Description: logsDescription,
|
Description: logsDescription,
|
||||||
Flags: sortFlags(logsFlags),
|
Flags: sortFlags(logsFlags),
|
||||||
Action: logsCmd,
|
Action: logsCmd,
|
||||||
ArgsUsage: "CONTAINER",
|
ArgsUsage: "CONTAINER",
|
||||||
SkipArgReorder: true,
|
SkipArgReorder: true,
|
||||||
OnUsageError: usageErrorHandler,
|
OnUsageError: usageErrorHandler,
|
||||||
|
UseShortOptionHandling: true,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user