WTFox / jsonfind

A fast and lightweight utility to easily find paths to values in JSON files.
https://afox.dev/posts/jsonfind
MIT License
31 stars 0 forks source link

flag arguments (global options) inconsistent with jf --help #4

Open evakhoni opened 2 years ago

evakhoni commented 2 years ago

1) jf --help usage does not mention global options at all USAGE: jf \<valueToFind> \<jsonFile>
should be
jf [GLOBAL OPTIONS] \<valueToFind> \<jsonFile>

2) join arguments does not work jf -fr "something" Incorrect Usage. flag provided but not defined: -fr ... ... ... 2022/05/10 10:49:01 flag provided but not defined: -fr 3) the above message is duplicate 4) in help arguments mentioned as 'global options' while in error as 'flag provided' 5) bonus :) jf -f -r "something" works, but jf -r "something" -f silently ignores the misplaced -f

WTFox commented 2 years ago

jsonfind currently uses urfave's cli package to handle the CLI bits. This issue might prompt me to move to Cobra or something similar if this isn't supported with what I'm already using.

evakhoni commented 2 years ago

if its not feasible feel free to reject it man... opened to let u know, now its up to you.