aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.c
diff options
context:
space:
mode:
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;