Skip to content

Commit

Permalink
Adapt usage according to review.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Rebhan committed Dec 3, 2021
1 parent 32d6e3f commit 8176554
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/COMMANDS_AND_FLAGS.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ telegraf [flags]
|`--section-filter` |filter config sections to output, separator is `:`. Valid values are `agent`, `global_tags`, `outputs`, `processors`, `aggregators` and `inputs`|
|`--sample-config` |print out full sample configuration|
|`--once` |enable once mode: gather metrics once, write them, and exit|
|`--test` |enable test mode: gather metrics once and print them.<br>**No outputs are written!**|
|`--test-wait` |wait up to this many seconds for service inputs to complete in test or once mode. <br> **Implies `--test` if not used with `--once`**|
|`--test` |enable test mode: gather metrics once and print them. **No outputs are executed!**|
|`--test-wait` |wait up to this many seconds for service inputs to complete in test or once mode. **Implies `--test` if not used with `--once`**|
|`--usage <plugin>` |print usage for a plugin, ie, `telegraf --usage mysql`|
|`--version` |display the version and exit|

Expand Down
4 changes: 2 additions & 2 deletions internal/usage.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ The commands & flags are:
--sample-config print out full sample configuration
--once enable once mode: gather metrics once, write them, and exit
--test enable test mode: gather metrics once and print them.
NO OUTPUTS ARE WRITTEN!
No outputs are executed!
--test-wait wait up to this many seconds for service inputs to complete
in test or once mode. IMPLIES --test if not used with --once.
in test or once mode. Implies --test if not used with --once.
--usage <plugin> print usage for a plugin, ie, 'telegraf --usage mysql'
--version display the version and exit
Expand Down

0 comments on commit 8176554

Please sign in to comment.