Skip to content

Commit bd813d5

Browse files
author
Timothy O'Brien
committed
Added a trivial amount of Javadoc to the HelpFormatter. The writerless printHelp function assumed that a user would know that information was being printed to System.out. It makes sense to explicitly state this.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/cli/trunk@129945 13f79535-47bb-0310-9956-ffa450edef68
1 parent c0d5c79 commit bd813d5

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

src/java/org/apache/commons/cli/HelpFormatter.java

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ public String getArgName()
290290

291291
/**
292292
* <p>Print the help for <code>options</code> with the specified
293-
* command line syntax.</p>
293+
* command line syntax. This method prints help information to
294+
* System.out.</p>
294295
*
295296
* @param cmdLineSyntax the syntax for this application
296297
* @param options the Options instance
@@ -302,7 +303,8 @@ public void printHelp(String cmdLineSyntax, Options options)
302303

303304
/**
304305
* <p>Print the help for <code>options</code> with the specified
305-
* command line syntax.</p>
306+
* command line syntax. This method prints help information to
307+
* System.out.</p>
306308
*
307309
* @param cmdLineSyntax the syntax for this application
308310
* @param options the Options instance
@@ -317,7 +319,8 @@ public void printHelp(String cmdLineSyntax, Options options,
317319

318320
/**
319321
* <p>Print the help for <code>options</code> with the specified
320-
* command line syntax.</p>
322+
* command line syntax. This method prints help information to
323+
* System.out.</p>
321324
*
322325
* @param cmdLineSyntax the syntax for this application
323326
* @param header the banner to display at the begining of the help
@@ -332,7 +335,8 @@ public void printHelp(String cmdLineSyntax, String header, Options options,
332335

333336
/**
334337
* <p>Print the help for <code>options</code> with the specified
335-
* command line syntax.</p>
338+
* command line syntax. This method prints help information to
339+
* System.out.</p>
336340
*
337341
* @param cmdLineSyntax the syntax for this application
338342
* @param header the banner to display at the begining of the help
@@ -350,7 +354,8 @@ public void printHelp(String cmdLineSyntax, String header, Options options,
350354

351355
/**
352356
* <p>Print the help for <code>options</code> with the specified
353-
* command line syntax.</p>
357+
* command line syntax. This method prints help information to
358+
* System.out.</p>
354359
*
355360
* @param width the number of characters to be displayed on each line
356361
* @param cmdLineSyntax the syntax for this application
@@ -366,7 +371,8 @@ public void printHelp(int width, String cmdLineSyntax, String header,
366371

367372
/**
368373
* <p>Print the help for <code>options</code> with the specified
369-
* command line syntax.</p>
374+
* command line syntax. This method prints help information to
375+
* System.out.</p>
370376
*
371377
* @param width the number of characters to be displayed on each line
372378
* @param cmdLineSyntax the syntax for this application
@@ -970,4 +976,4 @@ private String stripPrefix(String strOption)
970976
return strOption.substring(iStartIndex);
971977
}
972978
}
973-
}
979+
}

0 commit comments

Comments
 (0)