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
Accept arguments before command name (e.g. vp -r run) #2983
I keep accidentally running vp --filter backend run dev, but viteplus refuses to accept --filter before run. pnpm is fine with this ordering of arguments.
Suggested solution
Accept --filter and other args before the specific command to run, instead of only after.
In pnpm, --filter is a global option that works with every command. In Vite+, though, it's only supported by vp run and package management commands like vp add and vp install. Since commands like vp build and vp test don't support it, something like vp --filter backend build doesn't really make sense.
Vite+ already shows an error when it runs into an unknown argument. Maybe we could update that message to point out the right order whenever --filter or -r is placed before the command?
Activity
chore(deps): update rust crates (#1780)
chore(deps): update npm packages (#3108)
naokihaba commentedon Nov 18, 2026
@developerzeke
Thanks for the suggestion.
In pnpm,
--filteris a global option that works with every command. In Vite+, though, it's only supported byvp runand package management commands likevp addandvp install. Since commands likevp buildandvp testdon't support it, something likevp --filter backend builddoesn't really make sense.Vite+ already shows an error when it runs into an unknown argument. Maybe we could update that message to point out the right order whenever
--filteror-ris placed before the command?That way, anyone who gets the order mixed up can see how to fix it right away.
developerzeke commentedon Nov 18, 2026
Sure, or being able to just hit
yto run it like you can with a typo'd command could be nice.naokihaba commentedon Nov 18, 2026
I will work on this soon.
feat(cli): suggest the vp run order when package flags come first (vo…
naokihaba commentedon Nov 21, 2026
Thanks again for the suggestion, @developerzeke! 🙌
#3500 adds the hint I mentioned above. It'll ship in the next release, so give it a try once it's out!