1 19 package edu.umd.cs.findbugs; 20 21 import edu.umd.cs.findbugs.gui.FindBugsFrame; 22 23 28 public class ShowHelp { 29 public static void main(String [] args) { 30 36 System.out.println("FindBugs version " + Version.RELEASE + ", " + Version.WEBSITE); 37 FindBugsFrame.showSynopsis(); 38 FindBugs.showSynopsis(); 39 showGeneralOptions(); 40 FindBugsFrame.showCommandLineOptions(); 41 FindBugs.showCommandLineOptions(); 42 System.exit(0); 43 } 44 45 public static void showGeneralOptions() { 46 System.out.println("General options:"); 47 System.out.println(" -gui Use the Graphical UI (default behavior)"); 48 System.out.println(" -gui1 Use the older Graphical UI"); 49 System.out.println(" -textui Use the Text UI"); 50 System.out.println(" -jvmArgs args Pass args to JVM"); 51 System.out.println(" -maxHeap size Maximum Java heap size in megabytes (default=384)"); 52 System.out.println(" -javahome <dir> Specify location of JRE"); 53 System.out.println(" -help Display command line options"); 54 System.out.println(" -debug Enable debug tracing in FindBugs"); 55 } 56 } 57 | Popular Tags |