From 093e051007dbc3d7f6d213d3ebf43c5493dcabcc Mon Sep 17 00:00:00 2001 From: Will Ockmore Date: Thu, 28 Jun 2018 15:34:38 +0100 Subject: [PATCH] add more descriptive command helptext --- cmd/get.go | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/cmd/get.go b/cmd/get.go index e2d81e4..3924a09 100644 --- a/cmd/get.go +++ b/cmd/get.go @@ -40,6 +40,16 @@ var GetCommand = &cobra.Command{ func init() { GetCommand.Flags().StringVar(&getConfig.Prefix, "prefix", "", "log group prefix filter") - GetCommand.Flags().StringVar(&getConfig.Start, "start", "", "start getting the logs from this point") - GetCommand.Flags().StringVar(&getConfig.End, "end", "now", "stop getting the logs at this point") + GetCommand.Flags().StringVar( + &getConfig.Start, + "start", + "", + "start getting the logs from this point. Takes an absolute timestamp in RFC3339 format, or a relative time (eg. -2h). Valid time units are \"ns\", \"us\" (or \"µs\"), \"ms\", \"s\", \"m\", \"h\".", + ) + GetCommand.Flags().StringVar( + &getConfig.End, + "end", + "now", + "stop getting the logs at this point. Takes an absolute timestamp in RFC3339 format, or a relative time (eg. -2h). Valid time units are \"ns\", \"us\" (or \"µs\"), \"ms\", \"s\", \"m\", \"h\".", + ) }