Fix documentation of -tail/-f

Previously, -tail is erroneously documented as -f and -f and -n are not documented at all. 

This patch fixes both.
This commit is contained in:
Hynek Schlawack
2017-06-16 15:50:40 +02:00
committed by GitHub
parent 52ffc01972
commit ce745ea303

View File

@@ -60,14 +60,22 @@ $ nomad logs 04d9627d server
The logs command supports both displaying the logs as well as following logs,
blocking for more output, similar to `tail -f`. To follow the logs, use the
`-tail` flag:
appropriately named `-f` flag:
```shell
$ nomad logs -tail 04d9627d
$ nomad logs -f 04d9627d
```
This will stream logs to our console.
If you wish to see only the tail of a log, use the `-tail` and `-n` flags:
```shell
$ nomad logs -tail -n 25 04d9627d
```
This will show the last 25 lines. If you omit the `-n` flag, `-tail` will
default to 10 lines.
By default, only the logs on stdout are displayed. To show the log output from
stderr, use the `-stderr` flag: