handle_deprecated_cli_opts
- lib.utils.handle_deprecated_cli_opts(arguments: Namespace, additional: dict[str, tuple[str | bool | T.Any, ...]] | None = None) Namespace
Handle deprecated command line arguments and update to correct argument.
Deprecated cli opts will be provided in the following format: “depr_<option_key>_<deprecated_opt>_<new_opt>”
- Parameters:
arguments (Namespace) – The passed in faceswap cli arguments
additional (dict[str, tuple[str | bool | T.Any, ...]] | None) – Additional information in format {deprecated_argument: (additional_text, should_update, [new_value])} where deprecated_argument is the command line argument, additional_text is any additional text to display, should_update is whether the deprecated argument should be replaced with the new argument and new_value is an optional value that can be passed in that the new argument should be set to. Default:
None(no additional information)
- Return type:
The cli arguments with deprecated values mapped to the correct entry