You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
foo: Unknown option '--bar'
~/.config/fish/functions/foo.fish (line 2):
argparse 'h/help' -- $argv
in function 'foo' with arguments '--bar'
Usage: foo -h
... which is ugly and really not useful to the end-user of the script. They just need to know that they entered an incorrect option and to try again. As it says in builtin_argparse.cpp, "... this particular error is not an error in argparse usage." So why is it still treated as such by printing script debug info?
This is also evident in any function shipped with fish that uses argparse. For instance:
The text was updated successfully, but these errors were encountered: