diff --git a/pmd/src/main/java/net/sourceforge/pmd/cli/PMDCommandLineInterface.java b/pmd/src/main/java/net/sourceforge/pmd/cli/PMDCommandLineInterface.java
index 205f035b4e..94818e6baa 100644
--- a/pmd/src/main/java/net/sourceforge/pmd/cli/PMDCommandLineInterface.java
+++ b/pmd/src/main/java/net/sourceforge/pmd/cli/PMDCommandLineInterface.java
@@ -60,7 +60,7 @@ public class PMDCommandLineInterface {
+ "3) A ruleset filename or a comma-delimited string of ruleset filenames" + PMD.EOL
+ PMD.EOL
+ "For example: " + PMD.EOL
- + "c:\\> " + launchCmd + " c:\\my\\source\\code html java-unusedcode" + PMD.EOL
+ + "c:\\> " + launchCmd + "-d c:\\my\\source\\code -f html -R java-unusedcode" + PMD.EOL
+ PMD.EOL;
fullText += supportedVersions() + PMD.EOL;
@@ -87,10 +87,10 @@ public class PMDCommandLineInterface {
final String WINDOWS_PATH_TO_CODE = "c:\\my\\source\\code";
return "For example on windows: " + PMD.EOL
- + WINDOWS_PROMPT + launchCmd + " -dir" + WINDOWS_PATH_TO_CODE + "-format text java-unusedcode,java-imports -version 1.5 -language java -debug" + PMD.EOL
+ + WINDOWS_PROMPT + launchCmd + " -dir" + WINDOWS_PATH_TO_CODE + "-format text -R java-unusedcode,java-imports -version 1.5 -language java -debug" + PMD.EOL
+ WINDOWS_PROMPT + launchCmd + " -dir" + WINDOWS_PATH_TO_CODE + "-f xml -rulesets java-basic,java-design -encoding UTF-8" + PMD.EOL
+ WINDOWS_PROMPT + launchCmd + " -d" + WINDOWS_PATH_TO_CODE + "-rulesets java-typeresolution -auxclasspath commons-collections.jar;derby.jar" + PMD.EOL
- + WINDOWS_PROMPT + launchCmd + " -d" + WINDOWS_PATH_TO_CODE + "-f html java-typeresolution -auxclasspath file:///C:/my/classpathfile" + PMD.EOL
+ + WINDOWS_PROMPT + launchCmd + " -d" + WINDOWS_PATH_TO_CODE + "-f html -R java-typeresolution -auxclasspath -d file:///C:/my/classpathfile" + PMD.EOL
+ PMD.EOL;
}
diff --git a/pmd/src/site/xdocs/running.xml b/pmd/src/site/xdocs/running.xml
index f418b9f5cc..6fbd8601ee 100644
--- a/pmd/src/site/xdocs/running.xml
+++ b/pmd/src/site/xdocs/running.xml
@@ -15,7 +15,7 @@
The first argument is the name of the utility you want to execute ('pmd', 'designer',...) and the other arguments are
specific to the utility used.