Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

Add --ignore-unknown-options or --assert-exists-options $options, #4113

Closed
4 of 10 tasks
zoodogood opened this issue Nov 30, 2024 · 1 comment
Closed
4 of 10 tasks

Add --ignore-unknown-options or --assert-exists-options $options, #4113

zoodogood opened this issue Nov 30, 2024 · 1 comment
Labels

Comments

@zoodogood
Copy link

zoodogood commented Nov 30, 2024

Checklist

  • I have read through the manual page (man fzf)
  • I have searched through the existing issues
  • For bug reports, I have checked if the bug is reproducible in the latest version of fzf

Output of fzf --version

0.46.1

OS

  • Linux
  • macOS
  • Windows
  • Etc.

Shell

  • bash
  • zsh
  • fish

Problem / Steps to reproduce

Expected behavior:
There is an option to provide the latest fzf functions in the script without behavior like the unknown option: --wrap

Current behavior: There seems to be no such option or other ways to pass parameters safely.

Note: I use the latest version specified for my distribution

@zoodogood zoodogood changed the title Add --ignore-unknown-options or --ignore-options $options, Add --ignore-unknown-options or --assert-exists-options $options, Nov 30, 2024
@junegunn
Copy link
Owner

Even if we add such an option to fzf, you won't have it unless you upgrade your fzf to the latest version on GitHub (you can just download the binary and put it in your $PATH). And once you upgrade, you have all the options previously unavailable to you. So I don't really see the point of such an option.

If you need this because you want to distribute your script that requires some options to a group of users, your script should check the version number of the fzf installed on the user's system (fzf --version) and act accordingly.

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

No branches or pull requests

2 participants