From 7eb5c39f212e7982dc3c6f1fc5e8b58c1e80ad64 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Sat, 11 Apr 2020 16:00:05 +0100 Subject: [PATCH] config: remove the -d command line option Deprecated since v5 Signed-off-by: Yuxuan Shui --- src/options.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/options.c b/src/options.c index 4e40f35..e404410 100644 --- a/src/options.c +++ b/src/options.c @@ -469,8 +469,10 @@ bool get_early_config(int argc, char *const *argv, char **config_file, bool *all } else if (o == 'b') { *fork = true; } else if (o == 'd') { - log_warn("-d will be ignored, please use the DISPLAY " - "environment variable"); + log_error("-d is removed, please use the DISPLAY " + "environment variable"); + *exit_code = 1; + return true; } else if (o == 314) { *all_xerrors = true; } else if (o == 318) {