Skip to content

Verify command fails on empty input despite (Y/n) default #4349

@mikhailUshakoff

Description

@mikhailUshakoff

Select Tool

snforge

Foundry Version

0.60.0

What operating system are you using?

Linux

What system architecture are you using?

x86

Issue Description

sncast verify command prompt currently shows:

Are you sure you want to proceed? (Y/n):

By convention, uppercase indicates the default option.
So (Y/n) means:

  • Y is the default answer
  • pressing Enter without typing anything should be treated as yes

Currently, empty input causes a failure, which is inconsistent with the prompt.

This PR updates the prompt handling so that empty input is interpreted as yes, matching standard CLI conventions and improving UX consistency.

Command Line Output

The sncast verify command prompt currently shows:

Are you sure you want to proceed? (Y/n):

By convention, uppercase indicates the default option.
So (Y/n) means:

  • Y is the default answer
  • Pressing Enter without typing anything should be treated as "yes"

However, currently empty input causes the command to fail, which is inconsistent with standard CLI conventions. This leads to unexpected behavior when users simply press Enter to accept the default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions