Skip to content

Commit ef3ddc7

Browse files
committed
minor #1790 [Doc] Remove the --dir option in debug:twig-component command (javiereguiluz)
This PR was squashed before being merged into the 2.x branch. Discussion ---------- [Doc] Remove the --dir option in debug:twig-component command | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Issues | - | License | MIT I tried adding the `--dir` option and the command showed an error: `The "--dir" option does not exist.` Looking at the source code, it looks like this option doesn't exist: https://github.com/symfony/ux/blob/4b3fcaea426d7493e7151c97ba63697be0cc5061/src/TwigComponent/src/Command/TwigComponentDebugCommand.php#L47-L66 Commits ------- a1d873c [Doc] Remove the --dir option in debug:twig-component command
2 parents 0a1903e + a1d873c commit ef3ddc7

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

src/TwigComponent/doc/index.rst

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ and any other components by running:
118118

119119
.. code-block:: terminal
120120
121-
$ php bin/console debug:twig-component --dir=bar
121+
$ php bin/console debug:twig-component
122122
123123
Take a moment to fist pump - then come back!
124124

@@ -1597,7 +1597,7 @@ Debugging Components
15971597
As your application grows, you'll eventually have a lot of components.
15981598
This command will help you to debug some components issues.
15991599
First, the debug:twig-component command lists all your application components
1600-
who live in ``templates/components``:
1600+
that live in ``templates/components/``:
16011601

16021602
.. code-block:: terminal
16031603
@@ -1613,15 +1613,7 @@ who live in ``templates/components``:
16131613
| foo:Anonymous | Anonymous component | components/foo/Anonymous.html.twig | |
16141614
+---------------+-----------------------------+------------------------------------+------+
16151615
1616-
If you have some components that don't live in ``templates/components/``,
1617-
but in ``templates/bar`` for example, you can pass an option:
1618-
1619-
.. code-block:: terminal
1620-
1621-
$ php bin/console debug:twig-component --dir=bar
1622-
1623-
And the name of some component to this argument to print the
1624-
component details:
1616+
Pass the name of some component as an argument to print its details:
16251617

16261618
.. code-block:: terminal
16271619

0 commit comments

Comments
 (0)