MyParser.py 283 Bytes
Newer Older
priyank's avatar
priyank committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
'''
Created on Sep 26, 2013

@author: priyank
'''
import argparse
import sys

class MyParser(argparse.ArgumentParser):
    '''
    classdocs
    '''
    def error(self, message):
        sys.stderr.write('error: %s\n' % message)
        self.print_help()
        sys.exit(2)