From 648f006f08dd4bea9e259e0e59e1cc47ec671b96 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 21 Mar 2025 18:17:50 +0100 Subject: Remove dependency on libsimple since it's not portable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/config.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src/config.c') diff --git a/src/config.c b/src/config.c index 5762a9c..03d0e74 100644 --- a/src/config.c +++ b/src/config.c @@ -20,9 +20,17 @@ #include "common.h" -/* TODO missing translation */ -USAGE("[-b day:night] [-c file] [-g r:g:b] [-l latitude:longitude | -l provider[:options]]" - " [-m method[:options]] [-o | -O temperature | -t day:night | -x] [-pPrv] | -h | -V"); +/** + * Output usage synopsis and exit + */ +static void +usage(void) +{ + fprintf(stderr, _("usage: %s %s"), argv0, + _("[-b day:night] [-c file] [-g r:g:b] [-l latitude:longitude | -l provider[:options]]" + " [-m method[:options]] [-o | -O temperature | -t day:night | -x] [-pPrv] | -h | -V")); + exit(1); +} struct colour_setting day_settings; -- cgit v1.2.3-70-g09d2