[Console] Added the ability to return the default answer in a question#11975
[Console] Added the ability to return the default answer in a question#11975ThomasLomas wants to merge 1 commit into
Conversation
eb10681 to
756103d
Compare
There was a problem hiding this comment.
What about setting a default of true?
There was a problem hiding this comment.
Not sure if we should be more explicit and require true to be passed. Another opinion please?
There was a problem hiding this comment.
@wouterj You mean line 28 not the method parameter, don't you?
|
👍 |
756103d to
b6ccce8
Compare
There was a problem hiding this comment.
Thinking about usability, should the default be shown by default?
|
With the changes being made to the helpers to adhere to the style guide I wonder if this should be done in the Also, according to the current draft of the style guide the output should be: |
|
IMO, this is the wrong implementation. Putting the default as part of the message returned by |
|
@ThomasLomas Can you take into account the comments from @stof and update the PR accordingly? |
|
Considering that there now is a SymfonyStyle feature (which, among other things, adds the default value to the question) is this PR still relevant? |
|
As a result I think this can be closed. Thanks. |
This gives the option of showing the default answer along with the question. The documentation is a work in progress.