CheckOptions(parser,
options_dict,
required,
forbidden,
excluding,
mode)
|
|
Performes check on the command line options.
Checks whether the required arguments are present and if none of the
arguments not supported for the current mode are given.
- Parameters:
options_dict (list) - dictionary containing all the options from the command line
required (list) - list of pairs (option, argument) where 'option' is required in
mode 'mode'
forbidden (list) - list of pairs (option, argument) which are not allowed in mode
'mode'
excluding (list) - list of pairs (argument1, argument2); each pair contains mutually
exclusive arguments
mode (string) - current mode of the converter
|