Skip to content

Commit

Permalink
Improve documentation (#10477)
Browse files Browse the repository at this point in the history
Co-authored-by: Houssem ZITOUN <houssem.zitoun@ekino.com>
  • Loading branch information
houssemz and houssemzi committed Jan 21, 2022
1 parent 7f18085 commit 3ae1111
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions doc/03-cli.md
Expand Up @@ -156,17 +156,17 @@ composer.json you can use `--with` and provide a custom version constraint:
php composer.phar update --with vendor/package:2.0.1
```

The custom constraint has to be a subset of the existing constraint you have,
and this feature is only available for your root package dependencies.

If you only want to update the package(s) for which you provide custom constraints
using `--with`, you can skip `--with` and just use constraints with the partial
update syntax:
Note that with the above all packages will be updated. If you only want to
update the package(s) for which you provide custom constraints using `--with`,
you can skip `--with` and instead use constraints with the partial update syntax:

```sh
php composer.phar update vendor/package:2.0.1 vendor/package2:3.0.*
```

The custom constraint has to be a subset of the existing constraint you have,
and this feature is only available for your root package dependencies.


### Options

Expand Down

0 comments on commit 3ae1111

Please sign in to comment.