package com.github.sbugat.ec2tools.service;

import java.util.List;

import com.google.common.collect.ImmutableList;

/**
 * Loaded program options
 * 
 * @author Sylvain Bugat
 * 
 */
public class ProgramOptions {

	private final boolean listOption;

	private final boolean checkOption;

	private final boolean postCheckOption;

	private final List<String> sectionOptions;

	public ProgramOptions(final boolean listOptionArg, final boolean checkOptionArg, final boolean postCheckOptionArg, final List<String> sectionOptionsArg) {
		listOption = listOptionArg;
		checkOption = checkOptionArg;
		postCheckOption = postCheckOptionArg;

		sectionOptions = ImmutableList.copyOf(sectionOptionsArg);
	}

	public boolean hasListOption() {
		return listOption;
	}

	public boolean hasCheckOption() {
		return checkOption;
	}

	public boolean hasPostCheckOption() {
		return postCheckOption;
	}

	public List<String> getSectionOptions() {
		return sectionOptions;
	}
}

@@ -950,11 +950,89 @@
 ions;%0A%09%7D
+%0A%0A%09public boolean hasNoSectionOption() %7B%0A%09%09return sectionOptions.isEmpty();%0A%09%7D
 %0A%7D%0A

Add hasNoSectionOption method