<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,6 +1,7 @@
 package com.googlecode.jslint4java;
 
 import java.io.BufferedReader;
+import java.io.File;
 import java.io.FileInputStream;
 import java.io.FileNotFoundException;
 import java.io.IOException;
@@ -40,7 +41,7 @@ public class Main {
 
     private boolean errored = false;
 
-    private final JSLint lint;
+    private JSLint lint;
 
     private Main() throws IOException {
         lint = new JSLintBuilder().fromDefault();
@@ -122,6 +123,19 @@ public class Main {
             else if (&quot;--help&quot;.equals(arg)) {
                 help();
             }
+            // Specify an alternative jslint.
+            else if (arg.startsWith(&quot;--jslint&quot;)) {
+                String[] bits = arg.substring(2).split(&quot;=&quot;, 2);
+                if (bits.length != 2) {
+                    die(&quot;Must specify file with --jslint=/some/where/jslint.js&quot;);
+                }
+                try {
+                    // TODO Don't wipe out existing options that have been set.
+                    lint = new JSLintBuilder().fromFile(new File(bits[1]));
+                } catch (IOException e) {
+                    die(e.getMessage());
+                }
+            }
             // Longopt.
             else if (arg.startsWith(&quot;--&quot;)) {
                 String[] bits = arg.substring(2).split(&quot;=&quot;, 2);</diff>
      <filename>jslint4java/src/main/java/com/googlecode/jslint4java/Main.java</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>68300119e31ba8a7e4c78f77a6aeee386575ca0c</id>
    </parent>
  </parents>
  <author>
    <name>Dominic Mitchell</name>
    <email>dom@happygiraffe.net</email>
  </author>
  <url>http://github.com/happygiraffe/jslint4java/commit/8dc3a810e232dcb80e1a430800751c2ee442a4c3</url>
  <id>8dc3a810e232dcb80e1a430800751c2ee442a4c3</id>
  <committed-date>2009-10-27T13:51:55-07:00</committed-date>
  <authored-date>2009-10-27T00:58:57-07:00</authored-date>
  <message>issue 18: Allow specifying the jslint to the CLI.

Unfortunately, this will remove any options that come before it on the command line.</message>
  <tree>088ac021472a4bcc531f4fb971a36687cbe44a96</tree>
  <committer>
    <name>Dominic Mitchell</name>
    <email>dom@happygiraffe.net</email>
  </committer>
</commit>
