public static void main(String[] args) throws IOException {
		if(args[0].equals("skeleton")){
			ReadFrom r;
			
			switch (args[1]) {
			case "ios":
				r=new IOSParser();
				break;
			case "android":
				r=new AndroidParser();
				break;
			default:
				throw new IllegalArgumentException("unknown : "+args[1]);
			}
			
			List<File> list=new ArrayList<>();
			for(int i=2; i<args.length; i++){
				list.add(new File(args[i]));
			}
			
			generateSkeleton(list, r, new File(args[1]+"_skeleton.tew"));
		}
		else{
			ReadFrom r;
			WriteTo w;
			
			switch (args[0].substring(0, args[0].indexOf('2'))) {
			case "i":
				r=new IOSParser();
				break;
			default:
				throw new IllegalArgumentException("unknown : "+args[0]);
			}
			
			switch (args[0].substring(args[0].indexOf('2')+1, args[0].length())) {
			case "a":
				w=new AndroidParser();
				break;
			default:
				throw new IllegalArgumentException("unknown : "+args[0]);
			}
			
			List<File> list=new ArrayList<>();
			for(int i=2; i<args.length-1; i++){
				list.add(new File(args[i]));
			}
			
			Manager manager=new Manager(r, w);
			manager.process(new File(args[1]), list, new File(args[args.length-1]));
		}
	}