mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[BUG]: Incorrect order of similar subcommands in error message #373
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @flacial on GitHub (May 12, 2024).
Describe the bug
When a subcommand is misspelled or not recognized, the
tipmessage displays a list of similar subcommands. But the order of these subcommands is not right. The most relevant subcommand should be listed first, followed by the next most relevant, and so on.To Reproduce
Steps to reproduce the behavior:
komorebic send-to-montipmessageExpected behavior
The error message should display the list of similar subcommands in the correct order, with the most relevant subcommand listed first. In this case, the expected order should be:
send-to-monitorsend-to-monitor-workspacesend-to-named-workspacesend-to-workspacecycle-send-to-monitorScreenshots and Videos
Here is the output of the error message:
Operating System
komorebic checkOutput@LGUG2Z commented on GitHub (May 12, 2024):
Imo this is not a komorebi bug. If you feel strongly about this please file an issue on the Clap repo: https://github.com/clap-rs/clap