Atitit 字符串转换数组main参数解析 args splitByWholeSeparator
String string=" -host 101.1 8*124 -db 1 -get access_token";
// args = StringUtils.splitPreserveAllTokens(string); //multi whiteblank is pslite to mulit ,want to be one token
// args = StringUtils.splitPreserveAllTokens(string, ' ') ;
// args = StringUtils.splitPreserveAllTokens(string, " ") ;
args = StringUtils.splitByWholeSeparator(string, " ") ;
// args = StringUtils.splitByWholeSeparatorPreserveAllTokens( string, " ") ;
//args = StringUtils.splitByCharacterType(string);
CommandLineParser parser = new ();BasicParser
// 往list 里面存值
Groovy 字符串的 tokienz 方法