Skip to content

Commit 2021910

Browse files
committed
feat: update help text
1 parent 8fbfc4c commit 2021910

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ Options:
6868

6969
-h, --help Show this help message and exit.
7070
-v, --VERSION Show the VERSION and exit.
71-
-k, --keys The keys to use to generate the files. (Required)
71+
-k, --keys Space delimited list of keys to extract from the JSON output. (Required)
7272
-o, --outputs The JSON output to use. (Required)
7373
-d, --directory The directory to output the files to. (Required)
7474
-e, --extension The extension to use for the files. (Optional, defaults to txt)
7575

7676
Example:
77-
json2file --keys=foo,bar --outputs="{\"foo\": \"value1\", \"bar\": \"value2\"}" --directory=/tmp --extension=txt
77+
json2file --keys="foo bar" --outputs="{\"foo\": \"value1\", \"bar\": \"value2\"}" --directory=/tmp --extension=txt
7878
```
7979

8080
* Free software: [MIT license](LICENSE)

src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ fn main() {
257257
println!("Options:\n");
258258
println!("-h, --help\t\tShow this help message and exit.");
259259
println!("-v, --VERSION\t\tShow the VERSION and exit.");
260-
println!("-k, --keys\t\tThe keys to use to generate the files. (Required)");
260+
println!("-k, --keys\t\tSpace delimited list of keys to extract from the JSON output. (Required)");
261261
println!("-o, --outputs\t\tThe JSON output to use. (Required)");
262262
println!("-d, --directory\t\tThe directory to output the files to. (Required)");
263263
println!(

0 commit comments

Comments
 (0)