浏览代码

Merge pull request #8590 from bocharsky-bw/patch-1

Wrap version constaints that contain * with quotes
Jordi Boggiano 5 年之前
父节点
当前提交
ac40fc86e3
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      doc/03-cli.md

+ 2 - 2
doc/03-cli.md

@@ -190,7 +190,7 @@ If you do not want to choose requirements interactively, you can pass them
 to the command.
 to the command.
 
 
 ```sh
 ```sh
-php composer.phar require vendor/package:2.* vendor/package2:dev-master
+php composer.phar require "vendor/package:2.*" vendor/package2:dev-master
 ```
 ```
 
 
 If you do not specify a package, composer will prompt you to search for a package, and given results, provide a list of  matches to require.
 If you do not specify a package, composer will prompt you to search for a package, and given results, provide a list of  matches to require.
@@ -647,7 +647,7 @@ provide a version as third argument, otherwise the latest version is used.
 If the directory does not currently exist, it will be created during installation.
 If the directory does not currently exist, it will be created during installation.
 
 
 ```sh
 ```sh
-php composer.phar create-project doctrine/orm path 2.2.*
+php composer.phar create-project doctrine/orm path "2.2.*"
 ```
 ```
 
 
 It is also possible to run the command without params in a directory with an
 It is also possible to run the command without params in a directory with an