Added -no-history switch

This commit is contained in:
Reinhard Pointner 2019-05-19 12:47:17 +07:00
parent e35e905fa9
commit 616f361b0b
2 changed files with 7 additions and 0 deletions

View File

@ -428,6 +428,10 @@ public class Main {
System.setProperty("useExtendedFileAttributes", "false");
System.setProperty("useCreationDate", "false");
}
if (args.disableHistory) {
System.setProperty("application.rename.history", "false");
}
}
public static void initializeLogging(ArgumentBean args) throws IOException {

View File

@ -131,6 +131,9 @@ public class ArgumentBean {
@Option(name = "-no-xattr", usage = "Disable extended attributes")
public boolean disableExtendedAttributes = false;
@Option(name = "-no-history", usage = "Disable history")
public boolean disableHistory = false;
@Option(name = "--log", usage = "Log level", metaVar = "[all, fine, info, warning]")
public String log = "all";