Skip to content

Conversation

spkane31
Copy link
Contributor

@spkane31 spkane31 commented Sep 2, 2025

What was changed

  • When an invalid command and invalid flag is passed to the CLI then the error message will report on the invalid flag. This change will flip the order, and alert on an invalid command before invalid flags.

Why?

This is an improved developer experience, fixing an invalid flag on an invalid command will still fail. The more important issue is using a valid command, which might have the flag referenced.

image

Checklist

  1. Closes [Bug] Error showing "unknown flag" before "unknown command" #849

  2. How was this tested:
    Tested manually and added unit tests

  3. Any docs updates needed?
    No

@spkane31 spkane31 requested review from a team as code owners September 2, 2025 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Error showing "unknown flag" before "unknown command"
1 participant