Use double hyphen in cli examples

This commit is contained in:
Daniel Nelson 2017-08-11 16:26:00 -07:00
parent 5003809e97
commit 54be037911
No known key found for this signature in database
GPG Key ID: CAAD59C9444F6155
1 changed files with 4 additions and 4 deletions

View File

@ -51,7 +51,7 @@ var fAggregatorFilters = flag.String("aggregator-filter", "",
var fProcessorFilters = flag.String("processor-filter", "", var fProcessorFilters = flag.String("processor-filter", "",
"filter the processors to enable, separator is :") "filter the processors to enable, separator is :")
var fUsage = flag.String("usage", "", var fUsage = flag.String("usage", "",
"print usage for a plugin, ie, 'telegraf -usage mysql'") "print usage for a plugin, ie, 'telegraf --usage mysql'")
var fService = flag.String("service", "", var fService = flag.String("service", "",
"operate on the service") "operate on the service")
@ -83,8 +83,8 @@ Usage:
The commands & flags are: The commands & flags are:
config print out full sample configuration to stdout config print out full sample configuration to stdout
version print the version to stdout version print the version to stdout
--config <file> configuration file to load --config <file> configuration file to load
--test gather metrics once, print them to stdout, and exit --test gather metrics once, print them to stdout, and exit
@ -105,7 +105,7 @@ Examples:
telegraf --input-filter cpu --output-filter influxdb config telegraf --input-filter cpu --output-filter influxdb config
# run a single telegraf collection, outputing metrics to stdout # run a single telegraf collection, outputing metrics to stdout
telegraf --config telegraf.conf -test telegraf --config telegraf.conf --test
# run telegraf with all plugins defined in config file # run telegraf with all plugins defined in config file
telegraf --config telegraf.conf telegraf --config telegraf.conf