aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2025-03-21 18:17:50 +0100
committerMattias Andrée <m@maandree.se>2025-03-21 18:17:50 +0100
commit648f006f08dd4bea9e259e0e59e1cc47ec671b96 (patch)
tree5dc19d10a9e3c3eb4384816c1df0254990bfd68e /src/config.c
parentm (diff)
downloadredshift-ng-648f006f08dd4bea9e259e0e59e1cc47ec671b96.tar.gz
redshift-ng-648f006f08dd4bea9e259e0e59e1cc47ec671b96.tar.bz2
redshift-ng-648f006f08dd4bea9e259e0e59e1cc47ec671b96.tar.xz
Remove dependency on libsimple since it's not portable
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c14
1 files changed, 11 insertions, 3 deletions
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;