From 498b175fe98ea380312b539cf9e570ac191fcac0 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Fri, 3 Mar 2017 17:36:22 +0800 Subject: [PATCH] Allow rename(action) parameter to override the --action command-line option See https://www.filebot.net/forums/viewtopic.php?f=4&t=4801 --- source/net/filebot/cli/ScriptShellBaseClass.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/filebot/cli/ScriptShellBaseClass.java b/source/net/filebot/cli/ScriptShellBaseClass.java index 48413f7d..1ec61fcd 100644 --- a/source/net/filebot/cli/ScriptShellBaseClass.java +++ b/source/net/filebot/cli/ScriptShellBaseClass.java @@ -339,7 +339,7 @@ public abstract class ScriptShellBaseClass extends Script { try { if (files.size() > 0) { - return getCLI().rename(files, args.getRenameAction(), args.getConflictAction(), args.getAbsoluteOutputFolder(), args.getExpressionFileFormat(), args.getDatasource(), args.getSearchQuery(), args.getSortOrder(), args.getExpressionFilter(), args.getLanguage().getLocale(), args.isStrict()); + return getCLI().rename(files, action, args.getConflictAction(), args.getAbsoluteOutputFolder(), args.getExpressionFileFormat(), args.getDatasource(), args.getSearchQuery(), args.getSortOrder(), args.getExpressionFilter(), args.getLanguage().getLocale(), args.isStrict()); } if (map.size() > 0) {