Skip to content

Wrong error detected for invalid input #7

@wyongqiing

Description

@wyongqiing

e.g. : edit -i 1, 7, 5 -y2 -f SOC
output message: Index must be a positive integer (non-zero, no leading signs).
Possible Issues:

  • The index might be invalid
  • An unknown flag was keyed right after the index!

The message is misleading the user to key in the correct input as user will think that they key in the invalid index.
But the real error is there is no space between the -y2. Should check for the space and return the exception for this. This will be more clear and user friendly.

Screenshot 2025-04-04 at 5.15.26 PM.png

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions