flag#
- ctapipe.core.traits.flag(name: str, configurable: str, set_help: str = '', unset_help: str = '') Dict[str, Any] #
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.