Added -no-history switch
This commit is contained in:
parent
e35e905fa9
commit
616f361b0b
|
@ -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 {
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in New Issue