Skip to content

Commit

Permalink
Merge pull request #7 from kenden/patch-1
Browse files Browse the repository at this point in the history
Add help information about --since
  • Loading branch information
boz authored Sep 26, 2017
2 parents bef12a1 + e27921c commit 07f9b0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Flag | Selection
`--pod NAME` | match pods by name
`--ns NAMESPACE-NAME` | match pods in the given namespace
`--svc NAME` | match pods belonging to the given service
`--rc NAME` | match pods belonging to the given replication controller
`--rc NAME` | match pods belonging to the given replication controller
`--rs NAME` | match pods belonging to the given replica set
`--deploy NAME` | match pods belonging to the given deployment
`--node NODE-NAME` | match pods running on the given node
Expand Down Expand Up @@ -63,7 +63,8 @@ Flag | Description
`--dry-run` | Print initial matched pods and exit
`--log-level LEVEL` | Set the logging level (default: `error`)
`--log-file PATH` | Write output to `PATH` (default: `/dev/stderr`)
`--since DURATION` | Show logs as old as given duration. See [here](https://golang.org/pkg/time/#ParseDuration) for duration format.
`--since DURATION` | Display logs as old as given duration. Ex: `5s`, `2m`, `1.5h` or `2h45m` (defaults: `1s`)
See [here](https://golang.org/pkg/time/#ParseDuration) for more information on the duration format.

## Installing

Expand Down
2 changes: 1 addition & 1 deletion cmd/kail/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ var (
Default("error").
Enum("debug", "info", "warn", "error")

flagSince = kingpin.Flag("since", "Display logs generated since given duration.").
flagSince = kingpin.Flag("since", "Display logs generated since given duration, like 5s, 2m, 1.5h or 2h45m. Defaults to 1s.").
PlaceHolder("DURATION").
Default("1s").
Duration()
Expand Down

0 comments on commit 07f9b0d

Please sign in to comment.