public static void main(String[] args) throws Exception {
Options options = getOptions();
try {
CommandLineParser parser = new GnuParser();
CommandLine line = parser.parse( options, args );
File dir = new File(line.getOptionValue("dir", "."));
String name = line.getOptionValue("name", "jar");
System.out.println("total size of files in "+dir+" containing "+name+": "+SizeWhere.totalSize(dir, name));
} catch( ParseException exp ) {
// oops, something went wrong