add help message to redshift-gtk

This commit is contained in:
Samuel Walladge
2017-10-13 16:10:32 -07:00
committed by Jon Lund Steffensen
parent baa5d6577d
commit a172e1815d
+5
View File
@@ -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:])