All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.eshore.cli.App Maven / Gradle / Ivy

There is a newer version: 1.2.8
Show newest version
package com.eshore.cli;

public class App {
	static CommandLine[] clis =new CommandLine[]{
			new DefaultCli(),
			new ServerCli(),
			new ClientCli(),
			new ManagerCli()
	};
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		String name="default";
		if(args!=null&&args.length>0){
			name=args[0];
		}
		for(CommandLine cli:clis){
			if(cli.accept(name)){
				if(cli.exe(args))break;
			}
		}
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy