From 2df3c2291d9a174a9de4b62175a40c43925ca8a9 Mon Sep 17 00:00:00 2001 From: Nikos Tsipinakis Date: Sun, 16 Apr 2017 08:05:46 +0300 Subject: [PATCH] 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. --- src/settings.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/settings.c b/src/settings.c index 01016e9..35142bc 100644 --- a/src/settings.c +++ b/src/settings.c @@ -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" );