GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Accept arguments before command name (e.g. `vp -r run`) · Issue #2983 · voidzero-dev/vite-plus

Accept arguments before command name (e.g. vp -r run) #2983

New issue
Copy link
New issue
Copy link
Closed
Feature
#3500
Closed
Accept arguments before command name (e.g. vp -r run)#2983
Feature
#3500
Copy link
Assignees
naokihaba
Labels
pending triage

Description

@developerzeke
developerzeke
opened on Oct 10, 2026
Issue body actions

Description

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.

Validations

  • Read the Contributing Guidelines.
  • Confirm this request is for Vite+ itself and not for Vite, Vitest, tsdown, Rolldown, or Oxc.
  • Check that there isn't already an issue requesting the same feature.

Activity

  1. developerzeke
    added the
    Feature
    issue type on Oct 10, 2026
  2. developerzeke
    added
    pending triage
    on Oct 10, 2026
  3. fengmk2
    added 2 commits that reference this issue on Oct 14, 2026

    chore(deps): update rust crates (#1780)

    62de578

    chore(deps): update npm packages (#3108)

    474a534
  4. naokihaba
    self-assigned this
    on Nov 18, 2026
  5. naokihaba commented on Nov 18, 2026

    @naokihaba
    naokihaba
    on Nov 18, 2026
    Collaborator
    More actions

    @developerzeke

    Thanks for the suggestion.

    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?

    error: unexpected argument '--filter'
    hint: try running 'vp run --filter backend dev' instead

    That way, anyone who gets the order mixed up can see how to fix it right away.

  6. developerzeke commented on Nov 18, 2026

    @developerzeke
    developerzeke
    on Nov 18, 2026
    Author
    More actions

    Sure, or being able to just hit y to run it like you can with a typo'd command could be nice.

    Reacted by NaokiHaba
  7. naokihaba commented on Nov 18, 2026

    @naokihaba
    naokihaba
    on Nov 18, 2026
    Collaborator
    More actions

    I will work on this soon.

    Reacted by Developer Zeke
    Reacted by MK (fengmk2)
  8. fengmk2
    closed this as completedin #3500on Nov 21, 2026
  9. fengmk2
    added a commit that references this issue on Nov 21, 2026

    feat(cli): suggest the vp run order when package flags come first (vo…

    This issue will close once commit e98aaa0 is merged into the 'main' branch.
    e98aaa0
  10. naokihaba commented on Nov 21, 2026

    @naokihaba
    naokihaba
    on Nov 21, 2026
    Collaborator
    More actions

    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!

    Reacted by Developer Zeke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @naokihaba
    naokihaba

Labels

pending triage

Type

Feature

Fields

Priority

None yet

Start date

None yet

Target date

None yet

Effort

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.