diff options
Diffstat (limited to 'patternutils/commands/tmv.py')
| -rw-r--r-- | patternutils/commands/tmv.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/patternutils/commands/tmv.py b/patternutils/commands/tmv.py index fa7105e..6ce45ed 100644 --- a/patternutils/commands/tmv.py +++ b/patternutils/commands/tmv.py @@ -80,7 +80,7 @@ def tmv( interactive: bool, editor: bool, force: bool, - template_engine: str, + template_engine: template.TemplateEngines, abort_on_path_exist: bool, use_predefined_template: bool, read_from: click.File, @@ -106,9 +106,7 @@ def tmv( if use_predefined_template: try: - output_pattern, template_engine = config.load_template( - output_pattern, "tmv" - ) + output_pattern, template_engine = config.load_template(output_pattern, "tmv") except FileNotFoundError: click.secho(f"Template {output_pattern} not found!", fg="red", err=True) raise SystemExit |
