Update docs to CLI array parameters

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1242 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2014-03-24 12:43:45 +00:00
parent 1d85cbd5e9
commit 1b52b410c3

View File

@@ -164,6 +164,8 @@ The DomFramework is designed to be used in console line too.
You can pass the arguments like a string or an array with this syntax : You can pass the arguments like a string or an array with this syntax :
./cli/cli.php <controller class> <method> <param1> <param2> ./cli/cli.php <controller class> <method> <param1> <param2>
Example : ./cli/cli.php zones update data1 data2 "zone=newvalue1&param4=new" Example : ./cli/cli.php zones update data1 data2 "zone=newvalue1&param4=new"
In the example, the param3 provided to the method will be an array containing
two keys ("zone" and "param4" with the associated values)
It is possible to have one dash (-) in the parameters. In this case, the It is possible to have one dash (-) in the parameters. In this case, the
informations are readed from the stdin. informations are readed from the stdin.