public static void main(String[] args) throws Exception {
		int argCount = 0;
		boolean sortClasses = false;
		for (; argCount < args.length; argCount++) {
			String arg = args[argCount];
			if (arg.equals("-s")) {
				sortClasses = true;
			} else {
				break;
			}
		}
		// we should have one arg left
		if (argCount != args.length - 1) {
			throw new IllegalArgumentException("Usage: OrmLiteConfigUtil [-s] config-file-name");
		}
		writeConfigFile(args[argCount], sortClasses);
	}
public static void main ( String [ ] args ) throws Exception { int argCount = 0 ; boolean sortClasses = false ; for ( ; argCount < args . length ; argCount ++ ) { String arg = args [ argCount ] ; if ( arg . equals ( "-s" ) ) { sortClasses = true ; } else { break ; } } if ( argCount != args . length - 1 ) { throw new IllegalArgumentException ( "Usage: OrmLiteConfigUtil [-s] config-file-name" ) ; } writeConfigFile ( args [ argCount ] , sortClasses ) ; }
A call through to {@link #writeConfigFile(File, boolean)}. It takes an optional "-s" argument which turns on
sorting of classes by name to produce more deterministic output followed by the name of the output config file.