Add identically named command line flags for all settings

Make every setting be overridable from the command line using
-setting_name. Previously, some settings had shortened command line
flags (e.g. -fn instead of -font) which made the command line arguments
confusing.
This commit is contained in:
Nikos Tsipinakis 2017-04-16 08:05:46 +03:00
parent ce28250109
commit 2df3c2291d

View File

@ -105,7 +105,7 @@ void load_settings(char *cmdline_config_path)
settings.font = option_get_string( settings.font = option_get_string(
"global", "global",
"font", "-fn", font, "font", "-font/-fn", font,
"The font dunst should use." "The font dunst should use."
); );
@ -172,7 +172,7 @@ void load_settings(char *cmdline_config_path)
settings.monitor = option_get_int( settings.monitor = option_get_int(
"global", "global",
"monitor", "-mon", monitor, "monitor", "-mon/-monitor", monitor,
"On which monitor should the notifications be displayed" "On which monitor should the notifications be displayed"
); );