Handle commandline parsing errors gracefully
authorKarl Hasselström <kha@treskal.com>
Sun, 20 Apr 2008 13:17:17 +0000 (15:17 +0200)
committerKarl Hasselström <kha@treskal.com>
Sun, 20 Apr 2008 13:17:17 +0000 (15:17 +0200)
commitf3167489c16538cea5835bff466bfea8acfc25cb
treecaaf77fc319b0400d2bef99e811c3d480ce4f0db
parentd851da81409f07105c55d5088157e276cbc4fe13
Handle commandline parsing errors gracefully

The commandline option parser raises SystemExit after having explained
to the user what she did wrong. A recent refactoring introduced a
catch-all "except:" at the top level, which caught the SystemExit and
printed a traceback.

Let's just simply exit instead, like we used to.

Signed-off-by: Karl Hasselström <kha@treskal.com>
stgit/main.py