Browse Source

Fixes #17331: Adjusted docs to state that console command option position does not matter [skip ci]

tags/2.0.20
Alexander Makarov 5 years ago committed by GitHub
parent
commit
1f3e89d056
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      docs/guide/tutorial-console.md

4
docs/guide/tutorial-console.md

@ -36,9 +36,11 @@ Usage <span id="usage"></span>
You execute a console controller action using the following syntax: You execute a console controller action using the following syntax:
``` ```
yii <route> [--option1=value1 --option2=value2 ... argument1 argument2 ...] yii <route> [--option1=value1 ... argument1 argument2 ... --option2=value2]
``` ```
Options could be specified in any position.
In the above, `<route>` refers to the route to the controller action. The options will populate the class In the above, `<route>` refers to the route to the controller action. The options will populate the class
properties and arguments are the parameters of the action method. properties and arguments are the parameters of the action method.

Loading…
Cancel
Save