Permalink
Browse files

Extended the documentation so it show that multiple folders and/or fi…

…les can be used as a comma-seperated list for the "source" parameter
  • Loading branch information...
edorian authored and manuelpichler committed Nov 16, 2010
1 parent f120346 commit 0e9f44837adf855a85e06d0bcdda458346f45c64
Showing with 11 additions and 2 deletions.
  1. +9 −0 README.rst
  2. +2 −2 source/PHP/PMD/TextUI/CommandLineOptions.php
View
@@ -77,6 +77,15 @@ __ /documentation/creating-a-ruleset.html
That's it. With this behavior you can specify you own combination of rule sets
that will check the source code.
+Using multiple source files and folders
+```````````````````````````````````````
+
+PHPMD also allowes you to specify multiple source directories in case you want
+to create one output for certain parts of your code ::
+
+ ~ $ phpmd /path/to/code,index.php,/another/place/with/code text codesize
+
+
Exit codes
==========
@@ -322,7 +322,7 @@ public function createRenderer()
public function usage()
{
return 'Mandatory arguments:' . PHP_EOL .
- '1) A php source code filename or directory' . PHP_EOL .
+ '1) A php source code filename or directory. Can be a comma-separated string' . PHP_EOL .
'2) A report format' . PHP_EOL .
'3) A ruleset filename or a comma-separated string of ruleset' .
'filenames' . PHP_EOL . PHP_EOL .
@@ -356,4 +356,4 @@ protected function logDeprecated( $deprecatedName, $newName )
fwrite(STDERR, $message . PHP_EOL . PHP_EOL);
}
-}
+}

0 comments on commit 0e9f448

Please sign in to comment.