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
{{ message }}
Repository navigation
search does not pass arguments that start with a dash to plugins #808
vfox search <plugin> <arguments> parses its arguments as flags, so an argument that starts with a dash is rejected before the plugin's Available hook runs. The vfox-clang README documents vfox search clang --no-cache, which fails on vfox 1.1.0:
$ vfox search clang --no-cache
Incorrect Usage: flag provided but not defined: -no-cache
$ echo $?
1
With -- in front of the argument, it reaches the plugin: vfox search clang -- --no-cache.
cmd/commands/search.go does not set SkipFlagParsing, so unknown flags after the plugin name are an error. Positional arguments do reach the plugin (vfox search java tem), which is why the flag case stands out.
Expected: the arguments after the plugin name are passed to the plugin. If the flag parsing is meant to stay, the documentation should say that -- is needed.
Checked with vfox 1.1.0 on Linux, and the same search command on main (69da1ba).
Activity
mateuscmtropical commentedon Nov 21, 2026
Hi, I'd like to work on this one.
linghengqian commentedon Nov 21, 2026
@mateuscmtropical Welcome to open a PR.
mateuscmtropical commentedon Nov 21, 2026
Hi, I've opened a PR for this: #813