java.lang.Object
net.i2p.util.CommandLine
- Direct Known Subclasses:
AddressBookCommandLine, RouterCommandLine, SnarkCommandLine
Simple command line access to various utilities. Not a public API. Subject to change. Apps and plugins should use specific classes.
Field Summary
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNot instantiable; this class only serves the staticmain(String[])entry point.Method Summary
Modifier and TypeMethodDescriptionprotected static voidWill only return if command not found.static voidEntry point for command line utilities.protected static voidprintCommands(List<String> classes) Print the list of available commands.private static voidusage()Prints how to invoke this command-line tool.
Field Details
CLASSES
Constructor Details
CommandLine
protected CommandLine()Not instantiable; this class only serves the staticmain(String[])entry point.
Method Details
main
Entry point for command line utilities.- Parameters:
args- a subcommand naming a class to run; empty prints the usage
exec
usage
private static void usage()Prints how to invoke this command-line tool.printCommands