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:
parent
ce28250109
commit
2df3c2291d
@ -105,7 +105,7 @@ void load_settings(char *cmdline_config_path)
|
||||
|
||||
settings.font = option_get_string(
|
||||
"global",
|
||||
"font", "-fn", font,
|
||||
"font", "-font/-fn", font,
|
||||
"The font dunst should use."
|
||||
);
|
||||
|
||||
@ -172,7 +172,7 @@ void load_settings(char *cmdline_config_path)
|
||||
|
||||
settings.monitor = option_get_int(
|
||||
"global",
|
||||
"monitor", "-mon", monitor,
|
||||
"monitor", "-mon/-monitor", monitor,
|
||||
"On which monitor should the notifications be displayed"
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user