From 5da95346d32efa2c5d949e81f580b7d0706dc427 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Tue, 3 Jun 2014 18:31:15 +0200 Subject: [PATCH] Usage message --- gestion/tools/whosthere.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gestion/tools/whosthere.py b/gestion/tools/whosthere.py index 247c91cb..5b473823 100755 --- a/gestion/tools/whosthere.py +++ b/gestion/tools/whosthere.py @@ -192,5 +192,6 @@ if __name__ == '__main__': try: name = where[what.lower()] except KeyError: - continue + print "Usage: whosthere.py \n Locaux : %s" % (", ".join(where.keys())) + sys.exit(1) name().summary()