Name

CommandLine::UniqueOption — Check uniqueness of an option

Synopsis

Import CommandLine;
string CommandLine::UniqueOption ( map<string, string>  options ,
  list  unique_options );

Parameters

map<string, string> options

options specified by the user on the command line to be checked

list unique_options

list of mutually exclusive options to check against

Return Value

string

nil if there is a problem, otherwise the unique option found

Description

Check uniqueness of an option. Simply pass the list of user-specified options and a list of mutually exclusive options. In case of error, Report::Error is used.