aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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:])