mirror of https://github.com/docker/cli.git
Add shorthand for --tail option
I chose -n shorthand as it's similar with linux `tail` command. Signed-off-by: Александр Менщиков <__Singleton__@hackerdom.ru>
This commit is contained in:
parent
280e7230d5
commit
04ab71457a
|
@ -43,7 +43,7 @@ func NewLogsCommand(dockerCli command.Cli) *cobra.Command {
|
||||||
flags.SetAnnotation("until", "version", []string{"1.35"})
|
flags.SetAnnotation("until", "version", []string{"1.35"})
|
||||||
flags.BoolVarP(&opts.timestamps, "timestamps", "t", false, "Show timestamps")
|
flags.BoolVarP(&opts.timestamps, "timestamps", "t", false, "Show timestamps")
|
||||||
flags.BoolVar(&opts.details, "details", false, "Show extra details provided to logs")
|
flags.BoolVar(&opts.details, "details", false, "Show extra details provided to logs")
|
||||||
flags.StringVar(&opts.tail, "tail", "all", "Number of lines to show from the end of the logs")
|
flags.StringVarP(&opts.tail, "tail", "n", "all", "Number of lines to show from the end of the logs")
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue