2
gnu.getopt.Getopt.jar
有一些問題,我得到了一些問題,當我給B *作爲選項參數,那麼它正在以bin
Getopt g = new Getopt("cm_log_parser", args, "i:s"); //-D to enable debug log
while((opt = g.getopt()) != -1)
{
switch (opt)
{
case 'f'://To set file name(if above is not specified)
fileNameWithPath = getAndCheckOptArg(fFlag, opt, g);
fFlag = true;
break;
case 'p'://To set the pattern
String pattern = g.getOptarg();
hFlag = true;
break;
case '?':
usage("Invalid option" + opt + " option");
break;
}
}
當我指定-p "b*"
這是回報bin
,爲什麼發生這種情況?