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;
	}

	public boolean hasNoSectionOption() {
		return sectionOptions.isEmpty();
	}
}

@@ -209,16 +209,57 @@
 ions %7B%0A%0A
+%09private final boolean executionOption;%0A%0A
 %09private
@@ -438,32 +438,66 @@
 s(final boolean 
+executionOptionArg, final boolean 
 listOptionArg, f
@@ -599,16 +599,56 @@
 sArg) %7B%0A
+%09%09executionOption = executionOptionArg;%0A
 %09%09listOp
@@ -802,24 +802,93 @@
 nsArg);%0A%09%7D%0A%0A
+%09public boolean hasExecutionOption() %7B%0A%09%09return executionOption;%0A%09%7D%0A%0A
 %09public bool

Add execution option