break;
case 't':
if (textFile != null)
{
throw new CommandLineUsageException
("Can't specify both -t and -T");
}
text = (String) it.next();
break;
case 'T':
if (text != null)
{
throw new CommandLineUsageException
("Can't specify both -t and -T");
}
textFile = new File ((String) it.next());
break;
case 'm':
textMimeType = (String) it.next();
break;
case 'd':
debug = true;
break;
default:
// Should not happen.
throw new IllegalStateException ("(BUG) Bad option. " +
"Why am I here?");
}
}
}
catch (EmailException ex)
{
throw new CommandLineUsageException (ex);
}
}