Chore: removes undocumented flag --load-config

This commit is contained in:
李通洲
2025-08-14 10:42:15 +08:00
parent 5d8edc0c8b
commit 9ebff9fd22
2 changed files with 3 additions and 2 deletions
+2
View File
@@ -9,6 +9,8 @@ Changes:
* `display.bar.charTotal` has been renamed to `display.bar.char.total`.
* `display.bar.borderLeft` has been renamed to `display.bar.border.left`.
* `display.bar.borderRight` has been renamed to `display.bar.border.right`.
* Undocumented flag `--load-config` has been removed
* `--config` or `-c` should be used instead.
Features:
* Added `display.bar.border.{leftElapsed,rightElapsed}` for using border as parts of bar content. (#1875)
+1 -2
View File
@@ -3,7 +3,6 @@
#include "common/init.h"
#include "common/io/io.h"
#include "common/jsonconfig.h"
#include "common/printing.h"
#include "detection/version/version.h"
#include "logo/logo.h"
#include "util/stringUtils.h"
@@ -609,7 +608,7 @@ static void parseCommand(FFdata* data, char* key, char* value)
generateConfigFile(false, value, true);
else if(ffStrEqualsIgnCase(key, "--gen-config-full-force"))
generateConfigFile(true, value, true);
else if(ffStrEqualsIgnCase(key, "-c") || ffStrEqualsIgnCase(key, "--load-config") || ffStrEqualsIgnCase(key, "--config"))
else if(ffStrEqualsIgnCase(key, "-c") || ffStrEqualsIgnCase(key, "--config"))
optionParseConfigFile(data, key, value);
else if(ffStrEqualsIgnCase(key, "--format"))
{