microsoft / microsoft/winget-cli

winget --help lists options in random order?

Open
#5,471 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Output Area-User-Interface Issue-Feature
Dominant language
C++
Stars
26.4k
Forks
1.8k
Avg merge
1d 11h
Merged PRs (30d)
15

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running winget --help and winget install --help to capture the current option order and scope. Trace the help entry points and option definitions for these commands, then decide on a consistent ordering or grouping scheme; done means the displayed options are legible and consistently organized across the affected commands.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.