Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
bronze1man committed Sep 8, 2018
1 parent cebd7f9 commit 5c26c42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Binary installation and usage
* Download a binary that match your operation system and platform.
* https://github.com/bronze1man/yaml2json/releases
* copy it to `/usr/local/bin` like (`cp ~/Downloads/yaml2json_darwin_amd64 /usr/local/bin/yaml2json` )
* Use `chmod +x 777 /usr/local/bin/yaml2json` give running permission to it.
* Use `chmod +x /usr/local/bin/yaml2json` give running permission to it.

### Usage
* `echo "a: 1" | yaml2json`
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/bronze1man/yaml2json/y2jLib"
)

func main() {
func main() {
if len(os.Args)>1 && os.Args[1]=="--help"{
os.Stdout.WriteString(`Transform yaml string to json string without the type infomation.
Usage:
Expand Down

0 comments on commit 5c26c42

Please sign in to comment.