From d0dd35e29d775ecb4b94dccb893f74cd972e38ea Mon Sep 17 00:00:00 2001
From: Oliver Burn
Date: Mon, 21 Jan 2002 12:46:46 +0000
Subject: [PATCH] added comments on formatter (draft)
---
docs/cmdline.html | 23 ++++++++++++++++++++---
1 file changed, 20 insertions(+), 3 deletions(-)
diff --git a/docs/cmdline.html b/docs/cmdline.html
index 858c8f013..09ee32c83 100644
--- a/docs/cmdline.html
+++ b/docs/cmdline.html
@@ -29,10 +29,19 @@ This command line tool is included in the checkstyle distribution.
Usage
The command line usage is:
- java -D<property>=<value> com.puppycrawl.tools.checkstyle.Main file...
+ java -D<property>=<value> \
+ com.puppycrawl.tools.checkstyle.Main \
+ [-f <format>] [-o <toFile>] file...
-checkstyle will process the specified files and report errors to standard error. The default behaviour of checkstyle can be changed by setting system properties using the -D<property>=<value> arguments to java. The following table describes what properties can be set:
+Checkstyle will process the specified files and by default report errors to standard out in plain format. The options are:
+
+
+ - -f format: specify the output format. Options are plain and xml. Defaults to "plain"
+ - -o file: specify the file to output to.
+
+
+The default behaviour of checkstyle can be changed by setting system properties using the -D<property>=<value> arguments to java. The following table describes what properties can be set:
@@ -141,7 +150,15 @@ Older versions of the checkstyle task supported the boolean parameters checkstyl
Run checkstyle on a file and allow tabs
- java -Dcheckstyle.allow.tabs=yes com.puppycrawl.tools.checkstyle.Main Check.java
+ java -Dcheckstyle.allow.tabs=yes \
+ com.puppycrawl.tools.checkstyle.Main Check.java
+
+
+Run checkstyle on a file and output to a file in XML format
+
+ java -Dcheckstyle.allow.tabs=yes \
+ com.puppycrawl.tools.checkstyle.Main \
+ -f xml -o build/checkstyle_errors.xml Check.java
Run checkstyle on a file and disable pattern matching