Skip to content

Commit

Permalink
Fix #5127
Browse files Browse the repository at this point in the history
  • Loading branch information
e-dard committed Jan 7, 2016
1 parent 7ccbbec commit c6d32bd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/influx/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ func (c *CommandLine) Run() error {
c.Client.Addr())
}

// Modify precision.
c.SetPrecision(c.Precision)

if c.Execute == "" && !c.Import {
token, err := c.DatabaseToken()
if err != nil {
Expand All @@ -115,9 +118,6 @@ func (c *CommandLine) Run() error {
}

if c.Execute != "" {
// Modify precision before executing query
c.SetPrecision(c.Precision)

// Make the non-interactive mode send everything through the CLI's parser
// the same way the interactive mode works
lines := strings.Split(c.Execute, "\n")
Expand Down Expand Up @@ -728,7 +728,7 @@ func (c *CommandLine) help() {
fmt.Println(`Usage:
connect <host:port> connects to another node specified by host:port
auth prompts for username and password
pretty toggles pretty print for the json format
pretty toggles pretty print for the json format
use <db_name> sets current database
format <format> specifies the format of the server responses: json, csv, or column
precision <format> specifies the format of the timestamp: rfc3339, h, m, s, ms, u or ns
Expand Down

0 comments on commit c6d32bd

Please sign in to comment.