aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Lund Steffensen <jonlst@gmail.com>2017-10-13 17:11:30 -0700
committerGitHub <noreply@github.com>2017-10-13 17:11:30 -0700
commit54f8db6f7688e0d3c9d9df85e0f2bd432ca3fb2c (patch)
tree05e0714cabd04ad35d26d99de188692ae34b7e62
parentMerge pull request #432 from hanklank/master (diff)
parentadd help message to redshift-gtk (diff)
downloadredshift-ng-54f8db6f7688e0d3c9d9df85e0f2bd432ca3fb2c.tar.gz
redshift-ng-54f8db6f7688e0d3c9d9df85e0f2bd432ca3fb2c.tar.bz2
redshift-ng-54f8db6f7688e0d3c9d9df85e0f2bd432ca3fb2c.tar.xz
Merge pull request #536 from jonls/gtk-help-args
Add help message to redshift-gtk
-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:])