@@ -0,0 +1,1059 @@
+package sclp.demo;%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.InputStreamReader;%0Aimport java.io.Reader;%0Aimport java.util.*;%0A%0Aimport sclp.CommandLine;%0Aimport sclp.SimpleCLParser;%0A%0Apublic class Demo %7B%0A%0A%09public static void main(String%5B%5D args) throws Exception %7B%0A%09%09//System.out.println(%22source %22 + Arrays.toString(args));%0A%09%09SimpleCLParser parser = new SimpleCLParser();%0A%09%09parser.addOption(%22a%22).withArgument();%0A%09%09parser.addOption(%22b%22).withArgumentList();%0A%0A%09%09while (true) %7B%0A%09%09%09BufferedReader br = new BufferedReader(new InputStreamReader(System.in));%0A%09%09%09CommandLine result = parser.parse(br.readLine());%0A%09%09%09if (result.isParseSuccess()) %7B%0A%09%09%09%09System.out.println(%22Parse Success%22);%0A%09%09%09%09for (Iterator%3CString%3E it = result.optionNameIterator(); it.hasNext();) %7B%0A%09%09%09%09%09String optionName = it.next();%0A%09%09%09%09%09System.out.println(%22Option %22 + optionName + %22: %22 +%0A%09%09%09%09%09%09%09result.getOptionArgumentList(optionName));%0A%09%09%09%09%7D%0A%09%09%09%09System.out.println(%22Operand: %22 + result.getOperand());%0A%09%09%09%7D else %7B%0A%09%09%09%09System.out.println(%22Parse failed%22);%0A%09%09%09%7D%0A%09%09%09System.out.println(%22-----%22);%0A%09%09%7D%0A%09%7D%0A%7D%0A

add Demo.java for demonstration