From: Robert Klemme Date: 2005-05-11T17:25:27+09:00 Subject: Re: options parsing: required and conflict Kirill Shutemov wrote: > Can I define options dependencies using OptionParser? > For example: if user defines option --option-a than he has to define > option --option-b or --option-c and mustn't define --option-d and > --option-e. > Is it possible? I would check these constraints after all options have been parsed. Nobu might have a more elegant approach at hand, but I think, you can check them only after you saw all options because order might differ. Kind regards robert