From 46f86adaed90aae34043a3254568526ebb58727a Mon Sep 17 00:00:00 2001 From: DeGraciaMathieu Date: Tue, 11 Jul 2023 11:48:40 +0200 Subject: [PATCH] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1f0291f..e8ad80a 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ $ php smelly-code-detector inspect-method app --limit=5 ``` You can select scanned files with `--only=` and `--ignore=` options. ``` -$ php smelly-code-detector inspect app --only=Controller.php --limit=10 +$ php smelly-code-detector inspect-method app --only=Controller.php --limit=10 ❀ PHP Smelly Code Detector ❀ 24 [============================] +-----------------------------------------------------------+--------------------+------------+-----+-----+-----+-------+ @@ -107,7 +107,7 @@ $ php smelly-code-detector inspect app --only=Controller.php --limit=10 ``` You can select the visibilities to keep with the `--public`, `--protected` and `--private` options. ``` -$ php smelly-code-detector inspect app --private +$ php smelly-code-detector inspect-method app --private ❀ PHP Smelly Code Detector ❀ 84 [============================] +--------------------------------------------------+---------------------------------+------------+-----+-----+-----+-------+ @@ -122,7 +122,7 @@ $ php smelly-code-detector inspect app --private ``` By default, rows will be sorted by the smell value, you can change the sort order with `--sort-by=` option, the following values are available : loc, arg, ccl, smell. ``` -$ php smelly-code-detector inspect app --sort-by=ccl --limit=3 +$ php smelly-code-detector inspect-method app --sort-by=ccl --limit=3 ❀ PHP Smelly Code Detector ❀ 84 [============================] +---------------------------------------------------+-----------------------+------------+-----+-----+-----+-------+