Skip to content

Add input validation for empty or blank strings #2

@kumaakh

Description

@kumaakh

When a user passes an empty string or whitespace-only string as an argument, the tool should reject it with a clear error message instead of silently proceeding or crashing.

Acceptance Criteria

  • Passing "" or " " as input prints a user-friendly error: Error: input must not be empty
  • Exit code is non-zero (e.g. 1)
  • Unit test added covering both empty and whitespace-only cases

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions