From 60729fdd7721f35080ec058f935b5776467ecd11 Mon Sep 17 00:00:00 2001 From: Cory LaNou Date: Mon, 18 May 2015 14:40:42 -0600 Subject: [PATCH] cli usage corrections --- cmd/influx/main.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/influx/main.go b/cmd/influx/main.go index 177f3dae45..3f356dbbaa 100644 --- a/cmd/influx/main.go +++ b/cmd/influx/main.go @@ -64,7 +64,7 @@ func main() { fmt.Println(`Usage of influx: -host 'host name' Host to connect to. - -port + -port 'port #' Port to connect to. -database 'database name' Database to connect to the server. @@ -78,19 +78,19 @@ func main() { Execute command and quit. -format 'json|csv|column' Format specifies the format of the server responses: json, csv, or column. - -pretty 'true|false' + -pretty Turns on pretty print for the json format. Examples: # Use influx in a non-interactive mode to query the database "metrics" and pretty print json - $ influx -database="metrics" -execute="select * from cpu" -format="json" -pretty="true" + $ influx -database 'metrics' -execute 'select * from cpu' -format 'json' -pretty # Dumping out your data - $ influx -dump=true -database="metrics" + $ influx -database 'metrics' -dump # Connect to a specific database on startup and set database context - $ influx -database="metrics" -host="localhost" -port="8086 + $ influx -database 'metrics' -host 'localhost' -port '8086' `) }