cape.cfdx.options.execopts: OptionsDict derivative for CLI¶
This module provides ExecOpts, which is a slight modification
of the default OptionsDict class. If initialize with a single
boolean argument (e.g. ExecOpts(True)), it will take that boolean to
be the value for the run option.
>>> ExecOpts(True)
{'run': True}
- class cape.cfdx.options.execopts.ExecOpts(*args, **kw)¶
Special options class for CLI arguments to an executable
This allows a JSON setting like
"aflr3": false
to be interpreted as
"aflr3": { "run": false }
- Call:
>>> opts = ExecOpts(q, **kw) >>> opts = ExecOpts(d, **kw) >>> opts = ExecOpts(fjson, **kw)
- Ipnuts:
- Outputs:
- opts:
ExecOpts Options interface for CLI options
- opts:
- Versions:
2022-10-28
@ddalle: Version 1.0
- init_post()¶
Post-init hook for AFLR3Opts
This hook sets a case-dependent default value for run
- Call:
>>> opts.init_post()
- Inputs:
- opts:
AFLR3Opts Options interface
- opts:
- Versions:
2022-10-14
@ddalle: Version 1.0