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

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

Open
evakhoni opened this issue May 10, 2022 · 2 comments
Open

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

evakhoni opened this issue May 10, 2022 · 2 comments

Comments

@evakhoni
Copy link

  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
Copy link
Owner

WTFox commented May 13, 2022

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
Copy link
Author

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

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

2 participants