From dedd7e91f523cc8b85b36e688897fdc7ccdccafc Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Sat, 20 Feb 2016 10:44:30 +0100
Subject: [PATCH] Server: Abort more elegantly on --help argument.

---
 roguelike-server | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/roguelike-server b/roguelike-server
index ab6727d..c8bf3f7 100755
--- a/roguelike-server
+++ b/roguelike-server
@@ -76,7 +76,8 @@ try:
     else:
         play_game()
 except SystemExit as exit:
-    print("ABORTING: " + str(exit.args[0]))
+    if len(exit.args) < 2 and exit.args[0] != 0:
+        print("ABORTING: " + str(exit.args[0]))
 except:
     print("SOMETHING WENT WRONG IN UNEXPECTED WAYS")
     raise
-- 
2.30.2