Skip to content
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

Add a ReservedWordsCommand -l or --list parameter to the usage hints #2317

Merged
merged 1 commit into from
Feb 19, 2016

Conversation

rquadling
Copy link
Contributor

Without using --list|-l you get a too many arguments error.

As an example ...

[ 15/02/2016 17:45:32 ] [ C:\wamp\www ] >vendor\bin\doctrine-dbal d:re mysql57 mysql


  [Symfony\Component\Console\Exception\RuntimeException]
  Too many arguments.


dbal:reserved-words [-l|--list [LIST]]


[ 15/02/2016 17:47:39 ] [ C:\wamp\www ] >vendor\bin\doctrine-dbal d:re -l mysql57 mysql


  [Symfony\Component\Console\Exception\RuntimeException]
  Too many arguments.


dbal:reserved-words [-l|--list [LIST]]


[ 15/02/2016 17:47:48 ] [ C:\wamp\www ] >vendor\bin\doctrine-dbal d:re -l mysql57 -l mysql
Checking keyword violations for mysql57, mysql...
There are 5 reserved keyword violations in your database schema:
  - Table affiliates column key keyword violations: MySQL57, MySQL
  - Table epos_landing_pages column key keyword violations: MySQL57, MySQL
  - Table purchase_notifications column trigger keyword violations: MySQL57, MySQL
  - Table xpermissions column add keyword violations: MySQL57, MySQL
  - Table xpermissions column delete keyword violations: MySQL57, MySQL

Without using ``--list|-l`` you get a too many arguments error.

As an example ...

```
[ 15/02/2016 17:45:32 ] [ C:\wamp\www ] >vendor\bin\doctrine-dbal d:re mysql57 mysql


  [Symfony\Component\Console\Exception\RuntimeException]
  Too many arguments.


dbal:reserved-words [-l|--list [LIST]]


[ 15/02/2016 17:47:39 ] [ C:\wamp\www ] >vendor\bin\doctrine-dbal d:re -l mysql57 mysql


  [Symfony\Component\Console\Exception\RuntimeException]
  Too many arguments.


dbal:reserved-words [-l|--list [LIST]]


[ 15/02/2016 17:47:48 ] [ C:\wamp\www ] >vendor\bin\doctrine-dbal d:re -l mysql57 -l mysql
Checking keyword violations for mysql57, mysql...
There are 5 reserved keyword violations in your database schema:
  - Table affiliates column key keyword violations: MySQL57, MySQL
  - Table epos_landing_pages column key keyword violations: MySQL57, MySQL
  - Table purchase_notifications column trigger keyword violations: MySQL57, MySQL
  - Table xpermissions column add keyword violations: MySQL57, MySQL
  - Table xpermissions column delete keyword violations: MySQL57, MySQL
```
@Ocramius
Copy link
Member

Looks straightforward/simple.

@Ocramius Ocramius added this to the 2.6 milestone Feb 15, 2016
deeky666 added a commit that referenced this pull request Feb 19, 2016
Multiple dialects require a --list per dialect
@deeky666 deeky666 merged commit 61e1f86 into doctrine:master Feb 19, 2016
@deeky666
Copy link
Member

@rquadling thanks!

@deeky666 deeky666 changed the title Multiple dialects require a --list per dialect [Tools] ReservedWordsCommand: Multiple dialects require a --list per dialect Feb 19, 2016
@rquadling rquadling deleted the patch-1 branch February 19, 2016 15:15
@Ocramius Ocramius changed the title [Tools] ReservedWordsCommand: Multiple dialects require a --list per dialect Add a ReservedWordsCommand: displays reserved keywords for the current selected platform Jul 22, 2017
@Ocramius Ocramius changed the title Add a ReservedWordsCommand: displays reserved keywords for the current selected platform Add a ReservedWordsCommand -l or --list parameter to the usage hints Jul 22, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants