Skip to content

winml sys --list-device --format compact: --format flag silently ignored #232

@DingmaomaoBJTU

Description

@DingmaomaoBJTU

Summary

When using --list-device or --list-ep together with --format compact, the --format flag is silently ignored and output is always rendered as text. No warning is shown to the user.

Steps to Reproduce

winml sys --list-device --format compact
winml sys --list-ep --format compact

Actual Output

Rich text table (same as --format text) — compact format is not applied.

Root Cause

src/winml/modelkit/commands/sys.py lines 617–639: the --list-device / --list-ep branches only check use_json = output_format.lower() == "json". The compact case is never handled, so the text renderer is always used as fallback.

Expected Behavior

Either:

  1. Apply a compact single-line format for --list-device --format compact, or
  2. Raise a clear error/warning: --format compact is not supported with --list-device/--list-ep

Severity

P3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions