sys.exit() does not terminate my program
<p>I want to exit a Python script if my try succeeds. My code just doesn't exit and continues to execute the rest of the script.</p>

<p>If I run <code>python myscript.py --help</code>, I need the script to exit. If I run <code>python myscript.py</code> I need do execute the <code>except</code> part.</p>

<pre><code>try:
    if sys.argv[1] == '--help' or sys.argv[1] == '-help' or \
            sys.argv[1] == '-h' or sys.argv[1] == '--h':
        print "NAME"
        sys.exit("Usage : python go.py")
except:
    #REST OF THE CODE.
</code></pre>
