flag¶
-
ctapipe.core.traits.
flag
(name, configurable, set_help='', unset_help='')¶ Helper for building basic –trait, –no-trait flags.
- Parameters
- namestr
The name of the flag.
- configurablestr
The ‘Class.trait’ string of the trait to be set/unset with the flag
- set_helpunicode
help string for –name flag
- unset_helpunicode
help string for –no-name flag
- Returns
- cfgdict
A dict with two keys: ‘name’, and ‘no-name’, for setting and unsetting the trait, respectively.