aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSamuel Walladge <samuel@swalladge.id.au>2017-02-23 09:17:09 +1030
committerJon Lund Steffensen <jonlst@gmail.com>2017-10-13 16:10:32 -0700
commita172e1815d92f07f443079bac8f9984257d22760 (patch)
tree05e0714cabd04ad35d26d99de188692ae34b7e62 /src
parentMerge pull request #432 from hanklank/master (diff)
downloadredshift-ng-a172e1815d92f07f443079bac8f9984257d22760.tar.gz
redshift-ng-a172e1815d92f07f443079bac8f9984257d22760.tar.bz2
redshift-ng-a172e1815d92f07f443079bac8f9984257d22760.tar.xz
add help message to redshift-gtk
Diffstat (limited to 'src')
-rw-r--r--src/redshift-gtk/statusicon.py5
1 files changed, 5 insertions, 0 deletions
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:])