Skip to content

Commit

Permalink
change notty flag
Browse files Browse the repository at this point in the history
  • Loading branch information
tidwall committed Jan 6, 2018
1 parent 4082866 commit f020b6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -e

VERSION="1.1.1"
VERSION="1.1.2"
PROTECTED_MODE="no"

export GO15VENDOREXPERIMENT=1
Expand Down
6 changes: 4 additions & 2 deletions cmd/jj/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
version = "0.0.1"
tag = "jj - JSON Stream Editor " + version
usage = `
usage: jj [-v value] [-purOD] [-i infile] [-o outfile] keypath
usage: jj [-v value] [-purnOD] [-i infile] [-o outfile] keypath
examples: jj keypath read value from stdin
or: jj -i infile keypath read value from infile
Expand All @@ -29,9 +29,9 @@ options:
-p Make json pretty, keypath is optional
-u Make json ugly, keypath is optional
-r Use raw values, otherwise types are auto-detected
-n Do not output color or extra formatting
-O Performance boost for value updates.
-D Delete the value at the specified key path
--force-notty Do not output color or extra formatting
-i infile Use input file instead of stdin
-o outfile Use output file instead of stdout
keypath JSON key path (like "name.last")
Expand Down Expand Up @@ -91,6 +91,8 @@ func parseArgs() args {
a.opt = true
case 'D':
a.del = true
case 'n':
a.notty = true
}
}
continue
Expand Down

0 comments on commit f020b6b

Please sign in to comment.