Add option error to the error stack
| Parameters: | error_msg (str) – error message |
|---|
Check if all the options are present
| Parameters: | opt_dests (iterable(str)) – option destinations to check |
|---|---|
| Returns: | True if the all the options were set, otherwise False |
Check if any of options is present
| Parameters: | opt_dests (iterable(str)) – option destinations to check |
|---|---|
| Returns: | True if the any of the options was set, otherwise False |
Check if option is present
| Parameters: | opt_dest (str) – option destination to check |
|---|---|
| Returns: | True if the option was set, otherwise False |
Allows only one of option tuples to be present.
| Parameters: | opt_dest_tuples (iterable(str)) – option destinations to check |
|---|
Add an option error if an option is present.
| Parameters: |
|
|---|
Check if all the options are present and add an error to a message stack if not.
| Parameters: |
|
|---|
If one of the options is present, all are required. Otherwise add an error to a message stack.
| Parameters: |
|
|---|
Add an option error if there is less then one of the options present.
| Parameters: |
|
|---|
Add an option error if there is more then one of the options present.
| Parameters: |
|
|---|
Check if one and only one of the options is present. Otherwise add an error to a message stack.
| Parameters: |
|
|---|