Conversation
Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] When running commands with no arguments but that require them, please make it show a more friendly message. Right now I get for example
➜ GABS git:(main) ./gabs games
2025-09-13T20:20:20.297+0200 INFO util/log.go:57 starting gabs {"version": "0.1.0...
Improve games command error message with helpful usage information
Sep 13, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
When users run
gabs gameswithout any arguments, they receive a terse and unfriendly error message:This message is technical and doesn't provide helpful guidance for users who want to understand what they can do with the games command.
Solution
This PR replaces the terse error message with a friendly, helpful response that shows users exactly what they can do:
Changes Made
showGamesUsage()function that displays all available games commands with descriptionsThe new approach follows the same user-friendly style as the main
usage()function, providing clear guidance instead of just stating what's wrong.💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.