MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / normalize_output_param

Function normalize_output_param

keepercommander/commands/base.py:701–709  ·  view source on GitHub ↗
(args: str)

Source from the content-addressed store, hash-verified

699
700
701def 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
712def as_boolean(value, default=None): # type: (Any, Optional[bool]) -> bool

Callers 5

execute_argsMethod · 0.85
execute_argsMethod · 0.85
execute_argsMethod · 0.85
execute_argsMethod · 0.85
execute_argsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected