Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] How to read other options in IOptionCommandGenerator.generateCommand


I'm trying to combine several boolean options into one compiler command. Therefore I implemented an own command generator using the IOptionCommandGenerator interface.

As a parameter of generateCommand I get an IOption object for the respective option containing the value and all other information. 

Now I tried to read also the other options for this tool by calling option.getOptionHolder.getOptions, which returns me the list of all options for this tool. 
But in those options, the value is not filled, but is null. I guess this is because the values are depending on the configuration used. 

How can I access all other options including values, based on the given IOptions parameter?

Thanks for your help!


Back to the top