Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-k option not recognized #34

Open
paultopia opened this issue May 15, 2017 · 1 comment
Open

-k option not recognized #34

paultopia opened this issue May 15, 2017 · 1 comment

Comments

@paultopia
Copy link

attempting to convert a json using the instructions on the readme, I get error: unknown option-k'`

This occurs even when using the exact data and command written on the readme, i.e., input.json:

[
	{"user": {"name":"jehiah", "password": "root"}, "remote_ip": "127.0.0.1", "dt" : "[20/Aug/2010:01:12:44 -0400]"},
	{"user": {"name":"jeroenjanssens", "password": "123"}, "remote_ip": "192.168.0.1", "dt" : "[20/Aug/2010:01:12:44 -0400]"},
	{"user": {"name":"unknown", "password": ""}, "remote_ip": "76.216.210.0", "dt" : "[20/Aug/2010:01:12:45 -0400]"}
]

json2csv -k user.name,remote_ip -i input.json -o output.csv

error: unknown option `-k'

@paultopia
Copy link
Author

Aaah, I see. The help for the binary that go get produces reveals that what the readme has as -k should actually be -f.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant