X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=bin%2Fnotify.py;h=3caa7d2a70ede6e931d5b535dc3c02f6bce00405;hb=4dbbb218433fae75837e3f7daa7ba3313ae54533;hp=42fe6618eeedae78d00561ab8a31d78848726602;hpb=3085f6d8af8bd80ae2a7bd8f1e03450855caa78a;p=config%2Fdotfiles.git diff --git a/bin/notify.py b/bin/notify.py index 42fe661..3caa7d2 100755 --- a/bin/notify.py +++ b/bin/notify.py @@ -35,6 +35,10 @@ def mouse_press_callback(widget, event): if __name__ == '__main__': + if len(sys.argv) != 2: + sys.stderr.write("Usage: %s \n" % (sys.argv[0])) + sys.exit(1) + # Display configuration. BOLD = True FG_COLOR = 'blue'