MCPcopy Create free account
hub / github.com/kkroening/ffmpeg-python / convert_kwargs_to_cmd_line_args

Function convert_kwargs_to_cmd_line_args

ffmpeg/_utils.py:89–97  ·  view source on GitHub ↗

Helper function to build command line arguments out of dict.

(kwargs)

Source from the content-addressed store, hash-verified

87
88
89def convert_kwargs_to_cmd_line_args(kwargs):
90 """Helper function to build command line arguments out of dict."""
91 args = []
92 for k in sorted(kwargs.keys()):
93 v = kwargs[k]
94 args.append('-{}'.format(k))
95 if v is not None:
96 args.append('{}'.format(v))
97 return args

Callers 3

probeFunction · 0.85
_get_input_argsFunction · 0.85
_get_output_argsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…