public static void main(String[] args) {
		if(args.length == 0) {
			showUsage();
			return;
		}
		
		String src = null;
		String dst = null;
		boolean batchMode = false;
		
		for(int i = 0; i < args.length; i++) {
			if(args[i].equals("--batch"))
				batchMode = true;
			else if(src == null)			
				src = args[i];							
			else if(dst == null)
				dst = args[i];
		}

		if(src == null) {
			System.err.println("Error: input not specified");
			return;
		}
		
		if(dst == null) {
			System.out.println("Notice: using standard destination");		
		}
		
		try {
			if(!batchMode)
				processFile(src, dst);
			else
				processDir(src, dst);
		} catch(Exception e) {
			System.err.println("Error: error while processing file");
			e.printStackTrace();
		}
	}