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
Winget should support slash to introduce a switch #472
Keeping this open. For the record, here's supporting reference material for the /-style switch convention on Windows, since it's a recurring ask.
Issue summary
Request to accept / as a switch prefix (e.g. winget install /e ...) in addition to the current -/-- (POSIX/PowerShell-style) prefixes, matching the historical convention of classic Windows/DOS command-line tools.
Reference — / is the standard switch prefix across classic Windows utilities
Command-Line Syntax Key — the canonical Microsoft reference; documents /<switch> alongside [], <>, and |.
Other long-standing tools follow the same pattern: net, sc, fsutil, dism. The convention carries forward from DOS for backward compatibility.
Scope / considerations
The strongest framing is accepting / as an additional prefix for users coming from CMD, while -/-- remains the primary style for PowerShell/cross-shell users.
Trade-offs to reason through before adopting: / collides with path arguments in some positions, interaction with sub-arguments and =/: value syntax, and consistency of help/error output. These are the details a design proposal would need to resolve.
Activity
megamorf commentedon Jul 8, 2020
Related to #483
doctordns commentedon Jul 9, 2020
I would argue NEVER. Keep things consistent with Powershell
ptorr-msft commentedon Jul 9, 2020
Why not both? Not everyone uses PowerShell, and it is confusing for users of CMD.
denelon commentedon Jul 27, 2026
Keeping this open. For the record, here's supporting reference material for the
/-style switch convention on Windows, since it's a recurring ask.Issue summary
/as a switch prefix (e.g.winget install /e ...) in addition to the current-/--(POSIX/PowerShell-style) prefixes, matching the historical convention of classic Windows/DOS command-line tools.Reference —
/is the standard switch prefix across classic Windows utilities/<switch>alongside[],<>, and|./E,/COPYALL,/MT:8,/MIR/s,/e,/h,/q/a,/b,/w,/s/v,/t,/d,/fOther long-standing tools follow the same pattern:
net,sc,fsutil,dism. The convention carries forward from DOS for backward compatibility.Scope / considerations
/as an additional prefix for users coming from CMD, while-/--remains the primary style for PowerShell/cross-shell users./collides with path arguments in some positions, interaction with sub-arguments and=/:value syntax, and consistency of help/error output. These are the details a design proposal would need to resolve.Leaving open for design consideration.
Drafted with the help of GitHub Copilot.
Clean up Duplicate Surfacing comment noise (#6412) (#6414)