Checks whether the value has a switch value. If not then returns None as it should not be added.
(value)
| 339 | |
| 340 | |
| 341 | def __check_for_flag(value): |
| 342 | """Checks whether the value has a switch value. |
| 343 | |
| 344 | If not then returns None as it should not be added. |
| 345 | """ |
| 346 | if value['switch']: |
| 347 | return value |
| 348 | else: |
| 349 | logging.warning('Skipping %s which has no command line switch', |
| 350 | value['name']) |
| 351 | return None |
| 352 | |
| 353 | |
| 354 | def __with_argument(node, value): |
no outgoing calls
no test coverage detected
searching dependent graphs…