I fixed up some issues with the way the Help menu was being printed. I found that when a command didn't run for some reason that the helpful stuff would get shoved off screen. I also refactored the printHelp out of the XMLTools.java and created a new class HelpClass to print the help menu. The help refactored allowed me to get --help to print the help menu also.

Included is:

XMLTools.java.patch
Some refactoring and and wrapping of a class variable in the table Hashtable.

commands.xml.patch
Added two more commands to handle both the -h action and --help action.

HelpClass.java
New class that extends Command and implements it execute method. Just takes a command NodeList from the Hashtable and prints out the same help menu.


Todd Byrne

Reply via email to