src/main/java/wycc/WyProject.java
public static Command.Descriptor DESCRIPTOR(List<Command.Descriptor> descriptors) {
		return new Command.Descriptor() {

			@Override
			public Schema getConfigurationSchema() {
				// TODO Auto-generated method stub
				return null;
			}

			@Override
			public List<Option.Descriptor> getOptionDescriptors() {
				return Arrays.asList(
						Command.OPTION_FLAG("verbose", "generate verbose information about the build", false),
						Command.OPTION_FLAG("brief", "generate brief output for syntax errors", false));
			}

			@Override
			public Command initialise(Command environment, Configuration configuration) {
				return new WyProject((WyMain) environment, configuration, System.out, System.err);
			}

			@Override
			public String getName() {
				return "wy";
			}

			@Override
			public String getDescription() {
				return "Command-line interface for the Whiley Compiler Collection";
			}

			@Override
			public List<Command.Descriptor> getCommands() {
				return descriptors;
			}
		};
	}
public static Command.Descriptor DESCRIPTOR(List<Command.Descriptor> descriptors) {
		return new Command.Descriptor() {

			@Override
			public Schema getConfigurationSchema() {
				// TODO Auto-generated method stub
				return null;
			}

			@Override
			public List<Option.Descriptor> getOptionDescriptors() {
				return Arrays.asList(
						Command.OPTION_FLAG("verbose", "generate verbose information about the build", false),
						Command.OPTION_FLAG("brief", "generate brief output for syntax errors", false));
			}

			@Override
			public Command initialise(Command environment, Configuration configuration) {
				return new WyProject((WyMain) environment, configuration, System.out, System.err);
			}

			@Override
			public String getName() {
				return "wy";
			}

			@Override
			public String getDescription() {
				return "Command-line interface for the Whiley Compiler Collection";
			}

			@Override
			public List<Command.Descriptor> getCommands() {
				return descriptors;
			}
		};
	}
The descriptor for this command.

@author David J. Pearce