jsonfind icon indicating copy to clipboard operation
jsonfind copied to clipboard

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

Open evakhoni opened this issue 2 years ago • 2 comments

  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

evakhoni avatar May 10 '22 08:05 evakhoni

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.

WTFox avatar May 13 '22 19:05 WTFox

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

evakhoni avatar May 14 '22 12:05 evakhoni