From d8d4bac8995dcec143f13cdb88bfced2a49de69b Mon Sep 17 00:00:00 2001 From: angryziber Date: Fri, 21 Mar 2008 20:52:30 +0000 Subject: [PATCH] added warning about unimplemented command-line usage... git-svn-id: https://ipscan.svn.sourceforge.net/svnroot/ipscan/trunk@301 375186e5-ef17-0410-b0b6-91563547dcda --- src/net/azib/ipscan/Main.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/net/azib/ipscan/Main.java b/src/net/azib/ipscan/Main.java index 5b0648d9..e591220a 100755 --- a/src/net/azib/ipscan/Main.java +++ b/src/net/azib/ipscan/Main.java @@ -41,6 +41,8 @@ public class Main { initSystemProperties(); + processCommandLine(args); + Display display = Display.getDefault(); LOG.finer("SWT initialized after " + (System.currentTimeMillis() - startTime)); @@ -88,6 +90,13 @@ public class Main { Security.setProperty("networkaddress.cache.negative.ttl", "0"); } + private static void processCommandLine(String[] args) { + if (args.length != 0) { + // TODO: implement command-line + throw new UnsupportedOperationException("Command-line usage is not implemented yet, sorry"); + } + } + /** * Returns a nice localized message for the passed exception * in case it is possible, or toString() otherwise.