add help message to redshift-gtk
This commit is contained in:
committed by
Jon Lund Steffensen
parent
baa5d6577d
commit
a172e1815d
@@ -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:])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user