Merge pull request #536 from jonls/gtk-help-args

Add help message to redshift-gtk
This commit is contained in:
Jon Lund Steffensen
2017-10-13 17:11:30 -07:00
committed by GitHub
+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:])