001package org.unix4j.codegen.command.def;
002
003import java.util.LinkedHashSet;
004import java.util.Set;
005
006import org.unix4j.codegen.def.AbstractElementDef;
007
008public class OptionDef extends AbstractElementDef {
009        public OptionDef(String name, String acronym, String desc) {
010                if (acronym.length() != 1) {
011                        throw new IllegalArgumentException("acronym must be one character, but was '" + acronym + "' for option " + name); 
012                }
013                this.name = name;
014                this.acronym = acronym;
015                this.desc = desc;
016        }
017        public final String name;
018        public final String acronym;
019        public final Set<String> excludes       = new LinkedHashSet<String>();  //option (long) name
020        public final Set<String> enabledBy      = new LinkedHashSet<String>();  //option (long) name
021        public final String desc;
022}