winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

winget --help lists options in random order?

Open DrusTheAxe opened this issue 7 months ago • 1 comments

Brief description of your issue

winget --help lists options with seemingly random order. This is even worse for commands e.g. winget install --help emits 39 options, with no clear order or organization

Please reorder help's options in some legible order. Suggestion: alphabetical. Or consider using grouping by category, at least for the larger lists like install e.g.

Filter:
    -a,--architecture
    -e,--exact
    -id
    -moniker
    -name
    --installer-type
Display:
    -h,--silent
    -i,--interactive
    --nowarn,--ignoire-warnings
    --verbose,--verbose-logs
Connectivity:
    --authentication-account  
    --authentication-mode
    --accept-source-agreements
    --proxy
    --no-proxy
Security:
    --ignore-local-archive-malware-scan
    --ignore-security-hash
...

Steps to reproduce

Run winget --help, winget install --help or most any other command with --help

Expected behavior

winget --help and winget ...command... --help lists options in some sensible, legible order

Actual behavior

winget --help and winget ...command... --help lists options in random, chaotic, madness inducing order

Environment

Windows Package Manager (Preview) v1.11.320-preview
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.26100.3775
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.26.320.0

DrusTheAxe avatar May 21 '25 04:05 DrusTheAxe

[Policy] Area-Output [Policy] Area-User-Interface

mdanish-kh avatar May 21 '25 09:05 mdanish-kh

Commands...

Package Management:
    download
    export
    import
    install
    list
    pin
    repair
    search
    show
    source
    uninstall
    upgrade
Configuration Management:
    configure
    dscv3
Settings:
    settings
    features
Utility:
    dscv3
    error
    hash
    validate

Options...

-?, --help
--disable-interactivity  
--info 
--logs,--open-logs   
--no-proxy
--nowarn,--ignore-warnings 
--proxy 
--verbose,--verbose-logs 
--wait

denelon avatar Jul 01 '25 19:07 denelon