Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6833523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:59:20+00:00 2026-05-26T22:59:20+00:00

Over the years I’ve seen many different ways of solving the problem of asking

  • 0

Over the years I’ve seen many different ways of solving the problem of asking the user a simple yes/no question with a default value in the terminal.
But in the interest of standardization, does any kind of standard for doing this exist ?

Some of the different ways I’ve seen, plus a few examples dug up by googling include:

... (Y,N) [N]? Y
... (Y/N) ?  [Default=Y]
... [Y/n]?
... ([y]/n)?
...? [y/[n]]
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T22:59:21+00:00Added an answer on May 26, 2026 at 10:59 pm

    Extensive googling and other forms of searching do not turn up anything on the matter, which leads me to believe that there is no such standard because, well, there is no point in standardizing something this trivial.

    Standards usually exist to prevent people from writing custom protocols for everything and creating isolated islands of software that are not compatible with each other, and a yes/no question is something typically presented to a human user who is able to figure it out even if it’s in a bizarre form like “… {Y3s\n0} !>”.

    If you really want to be as “standard” as possible, the following format seems to be the most common:

    ... [Y/n]
    

    With the recommended/default option being capitalized, usually only requiring correct casing when no is the recommended option but.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Over the years I seen many people use the word generics, I honestly have
Over the years I have seen many approaches to this: Packaging a detached database
Over the years I've often asked myself why game developers place many small images
So over the years I have seen quite a few C# and VB applications
I'm learning Emacs after over two years of using Notepad++ as my default editor.
Over the years there must be a dozen ways to show/hide rows or showing/hiding
I've read many times over the years that you should do XOR ax, ax
I have used a few different tooltip plugins over the years, but I think
I have noticed over the years that different developers have different criteria for what
I have written webservices clients for many webservices over the years and almost all

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.