(args: str)
| 699 | |
| 700 | |
| 701 | def normalize_output_param(args: str) -> str: |
| 702 | if sys.platform.startswith('win'): |
| 703 | # Replace backslashes in output param only if in windows |
| 704 | args_list = re.split(r'\s+--', args) |
| 705 | for i, args_grp in enumerate(args_list): |
| 706 | if re.match(r'(--)*output', args_grp): |
| 707 | args_list[i] = re.sub(r'\\(\w+)', r'/\1', args_grp) |
| 708 | args = ' --'.join(args_list) |
| 709 | return args |
| 710 | |
| 711 | |
| 712 | def as_boolean(value, default=None): # type: (Any, Optional[bool]) -> bool |
no outgoing calls
no test coverage detected