Package list findbugs / 46ee007
add patch for improving help information for fb yesx 8 years ago
2 changed file(s) with 30 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 Index: findbugs-2.0.2/src/java/edu/umd/cs/findbugs/ShowHelp.java
1 ===================================================================
2 --- findbugs-2.0.2.orig/src/java/edu/umd/cs/findbugs/ShowHelp.java 2013-09-04 18:16:15.147345221 +0800
3 +++ findbugs-2.0.2/src/java/edu/umd/cs/findbugs/ShowHelp.java 2013-09-04 18:24:17.219341452 +0800
4 @@ -32,14 +32,21 @@
5 System.out.println("FindBugs version " + Version.RELEASE + ", " + Version.WEBSITE);
6
7 DetectorFactoryCollection.instance();
8 - System.out.println("Command line options");
9 + //System.out.println("Command line options:");
10
11 TreeSet<FindBugsMain> cmds = new TreeSet<FindBugsMain>();
12 for(Plugin p : Plugin.getAllPlugins())
13 for(FindBugsMain m : p.getAllFindBugsMain())
14 cmds.add(m);
15 - for(FindBugsMain m : cmds)
16 - System.out.printf("fb %-12s %-12s %s%n", m.cmd, m.kind, m.description);
17 + boolean isFirst=true;
18 + for(FindBugsMain m : cmds){
19 + if (isFirst)
20 + System.out.printf("Usage: ");
21 + else
22 + System.out.printf("or: ");
23 + System.out.printf("fb %-12s %-12s %s%n", m.cmd, m.kind, m.description);
24 + isFirst=false;
25 + }
26
27 // System.out.println();
28 // System.out.println("GUI Options:");
66 0007-insert-in-script.patch
77 use-system-jar.patch
88 0009-fix-buildxml-lib-denpendency-for-bcel-jformatstring.patch
9 0010-improve-fb-help-information.patch