[Cherbot-commit] SF.net SVN: cherbot: [72] trunk/src/net/sf/cherbot/IRCConnection.java
Status: Alpha
Brought to you by:
christianhujer
|
From: <chr...@us...> - 2007-06-17 10:22:12
|
Revision: 72
http://svn.sourceforge.net/cherbot/?rev=72&view=rev
Author: christianhujer
Date: 2007-06-17 03:22:10 -0700 (Sun, 17 Jun 2007)
Log Message:
-----------
Made ircHost option a required option.
Modified Paths:
--------------
trunk/src/net/sf/cherbot/IRCConnection.java
Modified: trunk/src/net/sf/cherbot/IRCConnection.java
===================================================================
--- trunk/src/net/sf/cherbot/IRCConnection.java 2007-06-17 10:19:54 UTC (rev 71)
+++ trunk/src/net/sf/cherbot/IRCConnection.java 2007-06-17 10:22:10 UTC (rev 72)
@@ -18,6 +18,7 @@
import net.sf.japi.io.args.BasicCommand;
import net.sf.japi.io.args.ArgParser;
import net.sf.japi.io.args.Option;
+import net.sf.japi.io.args.OptionType;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@@ -177,7 +178,7 @@
/** Sets the host of the IRC server to connect to.
* @param ircHost Host of the IRC server.
*/
- @Option({"ircHost"})
+ @Option(type = OptionType.REQUIRED, value = {"ircHost"})
public void setIrcHost(@NotNull final String ircHost) {
this.ircHost = ircHost;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|