def trace_args(self) -> T.List[str]:
    arg_map = {'human': ['--trace', '--trace-expand'], 'json-v1': ['--trace-expand', '--trace-format=json-v1']}
    base_args = ['--no-warn-unused-cli']
    if (not self.requires_stderr()):
        base_args += [f'--trace-redirect={self.trace_file}']
    return (arg_map[self.trace_format] + base_args)
def trace_args(self) -> T.List[str]:
    arg_map = {'human': ['--trace', '--trace-expand'], 'json-v1': ['--trace-expand', '--trace-format=json-v1']}
    base_args = ['--no-warn-unused-cli']
    if (not self.requires_stderr()):
        base_args += [f'--trace-redirect={self.trace_file}']
    return (arg_map[self.trace_format] + base_args)