fix: default background is not necessary

fix: added --bg to the help output as it was missing

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
This commit is contained in:
Alexis Maiquez 2023-12-24 17:06:19 +01:00
parent c90cc4d915
commit e28780562b

View File

@ -231,9 +231,6 @@ CApplicationContext::CApplicationContext (int argc, char* argv []) {
if (this->settings.general.defaultBackground.empty ()) {
if (optind < argc && strlen (argv [optind]) > 0) {
this->settings.general.defaultBackground = translateBackground (argv [optind]);
} else {
printHelp (argv [0]);
std::exit (0);
}
}
@ -310,6 +307,7 @@ void CApplicationContext::printHelp (const char* route) {
sLog.out ("\t--set-property <name=value>\tOverrides the default value of the given property");
sLog.out ("\t--no-fullscreen-pause\tPrevents the background pausing when an app is fullscreen");
sLog.out ("\t--disable-mouse\tDisables mouse interactions");
sLog.out ("\t--bg <background_path/background_id>\tAfter --screen-root uses the specified background only on that screen");
sLog.out (
"\t--scaling <mode>\t Scaling mode for wallpaper. Can be stretch, fit, fill, default. Must be used before wallpaper provided.\n\
\t\t For default wallpaper last specified value will be used.\n\