Skip to content

Conversation

javiereguiluz
Copy link
Member

Q A
Doc fix? yes
New docs? no
Applies to 2.3+
Fixed tickets #4110

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the option optionally here sounds very confusing, can it be reworded too?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't come up with anything else... (btw, you're back reviewing, awesome!).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can remove it all together and say:

There is nothing forbidding you to create a command with an input option set to
InputOption::OPTIONAL mode. You will just not be able to distinguish when the
flag for that option was used without a value (``command --yell``) or when it was
not used at all (``command``). The value retrieved for the option will be the
same ``null``.

?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like your explanation ... but I've tweaked some minor parts of it. Thanks.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-1 on the term "optional option", options are always optional. It's the value we are talking about here

@xabbuh
Copy link
Member

xabbuh commented Feb 20, 2015

Looks good 👍

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that optionally again 👴, it is okay, i will not fuss again about that. Go ahead 👍

@weaverryan
Copy link
Member

👍 Thanks Javier :)

@weaverryan weaverryan merged commit 89029cd into symfony:2.3 Mar 14, 2015
weaverryan added a commit that referenced this pull request Mar 14, 2015
…viereguiluz)

This PR was merged into the 2.3 branch.

Discussion
----------

Reworded the explanation about optional command options

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.3+
| Fixed tickets | #4110

Commits
-------

89029cd Reworded again the note about "optional options"
221597a Reworded the explanation about "optional options"
1b5fcf0 Reworded the explanation about optional command options
@javiereguiluz javiereguiluz deleted the fix_4110 branch January 3, 2018 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants