Skip to content

[cross-cutting] [P2] -d short used only by compile --device; everyone else uses --device with no short #565

Description

@zhenchaoni

Severity: P2
Command: cross-cutting


Category: Reserved Short Flags — each short flag means one thing, used the same way across commands.

Repro:

uv run winml compile --help | Select-String '^\s+-d,'
uv run winml build --help   | Select-String '^\s+-d,'
uv run winml eval --help    | Select-String '^\s+-d,'
uv run winml perf --help    | Select-String '^\s+-d,'

Actual: Only compile declares -d, --device. Other commands take --device long-form only.

Expected: Either drop -d from compile (so --device is consistently long-form everywhere), or add -d, --device to all four commands. The shared device_option decorator from another audit finding should make this trivial.

Why it matters: A user who runs winml compile -d npu then tries winml build -d npu gets "no such option" with no hint that --device is the long form.

Metadata

Metadata

Labels

P2Medium — minor bug or non-critical improvementbugSomething isn't workingdev experienceDeveloper experience improvementsqualityUse for quality control related issuestriagedIssue has been triaged

Type

No fields configured for Bug.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions