Skip to content

Commit

Permalink
add more descriptive command helptext
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Ockmore authored and TylerBrock committed Jun 28, 2018
1 parent dfe294d commit 093e051
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions cmd/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -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\".",
)
}

0 comments on commit 093e051

Please sign in to comment.