From a172e1815d92f07f443079bac8f9984257d22760 Mon Sep 17 00:00:00 2001
From: Samuel Walladge <samuel@swalladge.id.au>
Date: Thu, 23 Feb 2017 09:17:09 +1030
Subject: add help message to redshift-gtk

---
 src/redshift-gtk/statusicon.py | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'src/redshift-gtk')

diff --git a/src/redshift-gtk/statusicon.py b/src/redshift-gtk/statusicon.py
index 7fdf9af..3325403 100644
--- a/src/redshift-gtk/statusicon.py
+++ b/src/redshift-gtk/statusicon.py
@@ -344,6 +344,11 @@ def run():
     gettext.bindtextdomain('redshift', defs.LOCALEDIR)
     gettext.textdomain('redshift')
 
+    for help_arg in ('-h', '--help'):
+        if help_arg in sys.argv:
+            print(_('Please run `redshift -h` for help output.'))
+            sys.exit(-1)
+
     # Create redshift child process controller
     c = RedshiftController(sys.argv[1:])
 
-- 
cgit v1.2.3-70-g09d2