8000 [Console] Improved rendering of optional arguments in command synopsis by AnrDaemon · Pull Request #26417 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Console] Improved rendering of optional arguments in command synopsis #26417

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

AnrDaemon
Copy link
Contributor

Current rendering:

  build [options] [--] [<file>] [<output-dir>] [<packages>]...

Fixed (and actually correct) rendering:

  build [options] [--] [<file> [<output-dir> [<packages>...]]]

Also dropped duplicating required array-type argument. There's just no need for that, it only confuses the reader.

Q A
Branch? master
Bug fix? yes and no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets --
License MIT
Doc PR --

Optional arguments can not be independent, in general. Neither the argument parser allows that.

Current rendering:
```
  build [options] [--] [<file>] [<output-dir>] [<packages>]...
```
Fixed (and actually correct) rendering:
```
  build [options] [--] [<file> [<output-dir> [<packages>...]]]
```

Also dropped duplicating required array-type argument. There's just no need for that, it only confuses the reader.
@nicolas-grekas nicolas-grekas changed the title Improved rendering of optional arguments in command synopsis. [Console] Improved rendering of optional arguments in command synopsis. Mar 12, 2018
@nicolas-grekas nicolas-grekas changed the title [Console] Improved rendering of optional arguments in command synopsis. [Console] Improved rendering of optional arguments in command synopsis Mar 12, 2018
@nicolas-grekas nicolas-grekas added this to the 4.1 milestone Mar 12, 2018
@fabpot
Copy link
Member
fabpot commented Mar 15, 2018

Thank you @AnrDaemon.

@fabpot fabpot closed this Mar 15, 2018
fabpot added a commit that referenced this pull request Mar 15, 2018
…mmand synopsis (AnrDaemon)

This PR was squashed before being merged into the 4.1-dev branch (closes #26417).

Discussion
----------

[Console] Improved rendering of optional arguments in command synopsis

Current rendering:
```
  build [options] [--] [<file>] [<output-dir>] [<packages>]...
```
Fixed (and actually correct) rendering:
```
  build [options] [--] [<file> [<output-dir> [<packages>...]]]
```

Also dropped duplicating required array-type argument. There's just no need for that, it only confuses the reader.

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes and no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | --
| License       | MIT
| Doc PR        | --

Optional arguments can not be independent, in general.  Neither the argument parser allows that.

Commits
-------

938012f [Console] Improved rendering of optional arguments in command synopsis
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.

4 participants
0