We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
fish_opt
#7585 seems to have fixed only the string spec for argparse, but fish_opt still requires --short to be provided, even when we have --long-only:
--short
--long-only
String spec version:
# script.fish argparse 'opt=' -- $argv echo $_flag_opt
Output:
❯ fish script.fish --opt hi hi
fish_opt version:
# script2.fish set option (fish_opt --long=opt --long-only --required) argparse $option -- $argv echo $_flag_opt
❯ fish script2.fish --opt hi fish_opt: The --short flag is required and must be a single character argparse: --opt: unknown option
I expected fish_opt to have same capabilities as the string spec.
Fish version: 3.6.1
The text was updated successfully, but these errors were encountered:
To be honest: Use argparse directly.
I don't think fish_opt is really all that helpful. Personally, I consider it a mistake and would prefer to remove it.
Sorry, something went wrong.
No branches or pull requests
#7585 seems to have fixed only the string spec for argparse, but
fish_opt
still requires--short
to be provided, even when we have--long-only
:String spec version:
Output:
fish_opt
version:Output:
I expected
fish_opt
to have same capabilities as the string spec.Fish version: 3.6.1
The text was updated successfully, but these errors were encountered: