}
public static void main(String[] args)
throws Exception
{
Options options = new Options();
Option option;
option = new Option("n", "name", true, "Name");
option.setRequired(true);
options.addOption(option);
option = new Option("c", "channels", true, "A comma delimited set of channels to join");
option.setRequired(true);
options.addOption(option);
option = new Option("h", "irc-host", true, "The IRCD host");
option.setRequired(true);
options.addOption(option);
option = new Option("p", "irc-port", true, "The IRCD port");
option.setRequired(true);
options.addOption(option);
option = new Option("a", "irc-pass", true, "IRCd Server password");
option.setRequired(false);
options.addOption(option);
option = new Option("g", "graphite-enabled", false, "Set to true to log stats to graphite");
options.addOption(option);
option = new Option("r", "graphite-host", true, "Graphite server hostname");
options.addOption(option);
option = new Option("t", "graphite-port", true, "Graphite server port");
options.addOption(option);
CommandLineParser parser = new PosixParser();
CommandLine commandLine = null;
try {
commandLine = parser.parse(options, args);