Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/share/doc/autogen/autogen.html/ drwxr-xr-x | |
| Viewing file: Select action/file-type: Next: opt-attr aliases, Previous: opt-attr no-preset, Up: option attributes [Contents][Index] 7.5.5.7 Option Equivalence ClassGenerally, when several options are mutually exclusive and basically serve the
purpose of selecting one of several processing modes, specify the
For an option equivalence class, there is a single occurrence counter for
the class. It can be referenced with the interface macro,
Also, please take careful note: since the options are mapped to the equivalenced-to option descriptor, any option argument values are mapped to that descriptor also. Be sure you know which “equivalent option” was selected before getting an option argument value! During the presetting phase of option processing (see Presetting Options), equivalenced options may be specified. However, if different equivalenced members are specified, only the last instance will be recognized and the others will be discarded. A conflict error is indicated only when multiple different members appear on the command line itself. As an example of where equivalenced options might be useful, equivalence = create; and the program would be able to determine the operating mode with code that worked something like this: switch (WHICH_IDX_CREATE) {
case INDEX_OPT_CREATE: ...
case INDEX_OPT_EXTRACT: ...
case INDEX_OPT_PASS_THROUGH: ...
default: /* cannot happen */
}
Next: opt-attr aliases, Previous: opt-attr no-preset, Up: option attributes [Contents][Index] |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0057 ]-- |