class CommandLineArgumentHandlerService {

	public void load(String[] args, Consumer<String> output) {
		if (this.flags != null)
			throw new IllegalStateException("Already loaded.");
		this.flags = new EnumMap<>(Flag.class);

		this.outputFunction = output;
		processArgs(args);
		if (this.shouldProgramContinue()) {
			output("This is Amy. Copyright (c) 2018 the Amy project authors. For help run with flag -h.");
		}
	}

}