Skip to content

Commands with missing arguments should show full usage help #65

@timothyfroehlich

Description

@timothyfroehlich

Bug Description

Commands that require arguments like !add or !rm should display comprehensive usage help when run without required arguments, instead of showing minimal error messages.

Current Behavior

When users run commands like:

  • !add (without location arguments)
  • !rm (without machine/location arguments)

The bot likely shows a basic error message but doesn't provide the full command usage syntax.

Expected Behavior

Commands should respond with:

  1. Clear "arguments required" message
  2. Full usage syntax showing all required and optional parameters
  3. Examples of proper command usage
  4. Consistent formatting across all commands

Example Expected Output

For !add with no arguments:

❌ Arguments required

Usage: !add <location_name> [machine_name]
       !add <lat,lng> [machine_name]

Examples:
  !add "Avalon Games" 
  !add 47.6205,-122.3493 "Medieval Madness"
  !add "Dave & Busters Seattle"

Commands Affected

All commands that require arguments should implement this behavior:

  • !add
  • !rm
  • !list
  • Any other commands with required parameters

Implementation Notes

This should be handled in the command parsing/validation logic to ensure consistent behavior across all commands.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions