Skip to content

Commit

Permalink
Applied suggestions from Ryan
Browse files Browse the repository at this point in the history
  • Loading branch information
dcsg committed Jan 9, 2014
1 parent 5e97202 commit c1b2aad
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions components/console/changing_default_command.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.. index::
single: Console; Changing the Default Command
single: Console; Changing the Default Command

Changing the Default Command
============================
Expand All @@ -8,7 +8,7 @@ Changing the Default Command
The :method:`Symfony\\Component\\Console\\Application::setDefaultCommand`
method was introduced in version 2.5.

By default the Application will always run the ``ListCommand``. In order to change
will always run the ``ListCommand`` when no command name is passed. In order to change
the default command you just need to pass the command name you want to run by
default to the ``setDefaultCommand`` method::

Expand Down Expand Up @@ -45,7 +45,7 @@ Executing the application and changing the default Command::
$application->setDefaultCommand($command->getName());
$application->run();

Test the new default console command by running the following
Test the new default console command by running the following:

.. code-block:: bash
Expand All @@ -59,7 +59,7 @@ This will print the following to the command line:
.. tip::

The feature was a limitation since you cannot use the Command ``arguments``.
This feature has a limitation: you cannot use it with any Command arguments.

Learn More!
-----------
Expand Down
2 changes: 1 addition & 1 deletion components/console/single_command_tool.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.. index::
single: Console; Single command application
single: Console; Single command application

Building a Single Command Application
=====================================
Expand Down
3 changes: 2 additions & 1 deletion components/map.rst.inc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@

* :doc:`/components/console/introduction`
* :doc:`/components/console/usage`
* :doc:`/components/console/changing_default_behavior`
* :doc:`/components/console/single_command_tool`
* :doc:`/components/console/changing_default_command`
* :doc:`/components/console/events`
* :doc:`/components/console/helpers/index`

Expand Down

0 comments on commit c1b2aad

Please sign in to comment.