import argparse

class MyArgumentParser(argparse.ArgumentParser):
    def error(self,message=None):
        print('Argument Error')
        exit(2)

class InputParser():
    '''This class provides a CLI parser for arguments(name, age) using argparse module'''
    def __init__(self):
        parser = MyArgumentParser()
        parser.add_argument('-name', action='store', type=str, help='User name', required=True)
        parser.add_argument('-age', action='store', type=int, help="User's age", required=True)
        self.args = parser.parse_args()

    def get_name(self):
        return self.args.name

    def get_age(self):
        return self.args.age
9c0ca4635b2f743233cab2239830eaf28e3eebb7
<mask token>


class InputParser:
    <mask token>

    def __init__(self):
        parser = MyArgumentParser()
        parser.add_argument('-name', action='store', type=str, help=
            'User name', required=True)
        parser.add_argument('-age', action='store', type=int, help=
            "User's age", required=True)
        self.args = parser.parse_args()

    def get_name(self):
        return self.args.name

    def get_age(self):
        return self.args.age

<mask token>


class InputParser:
    """This class provides a CLI parser for arguments(name, age) using argparse module"""

    def __init__(self):
        parser = MyArgumentParser()
        parser.add_argument('-name', action='store', type=str, help=
            'User name', required=True)
        parser.add_argument('-age', action='store', type=int, help=
            "User's age", required=True)
        self.args = parser.parse_args()

    def get_name(self):
        return self.args.name

    def get_age(self):
        return self.args.age

<mask token>


class MyArgumentParser(argparse.ArgumentParser):

    def error(self, message=None):
        print('Argument Error')
        exit(2)


class InputParser:
    """This class provides a CLI parser for arguments(name, age) using argparse module"""

    def __init__(self):
        parser = MyArgumentParser()
        parser.add_argument('-name', action='store', type=str, help=
            'User name', required=True)
        parser.add_argument('-age', action='store', type=int, help=
            "User's age", required=True)
        self.args = parser.parse_args()

    def get_name(self):
        return self.args.name

    def get_age(self):
        return self.args.age

import argparse


class MyArgumentParser(argparse.ArgumentParser):

    def error(self, message=None):
        print('Argument Error')
        exit(2)


class InputParser:
    """This class provides a CLI parser for arguments(name, age) using argparse module"""

    def __init__(self):
        parser = MyArgumentParser()
        parser.add_argument('-name', action='store', type=str, help=
            'User name', required=True)
        parser.add_argument('-age', action='store', type=int, help=
            "User's age", required=True)
        self.args = parser.parse_args()

    def get_name(self):
        return self.args.name

    def get_age(self):
        return self.args.age

import argparse

class MyArgumentParser(argparse.ArgumentParser):
    def error(self,message=None):
        print('Argument Error')
        exit(2)

class InputParser():
    '''This class provides a CLI parser for arguments(name, age) using argparse module'''
    def __init__(self):
        parser = MyArgumentParser()
        parser.add_argument('-name', action='store', type=str, help='User name', required=True)
        parser.add_argument('-age', action='store', type=int, help="User's age", required=True)
        self.args = parser.parse_args()

    def get_name(self):
        return self.args.name

    def get_age(self):
        return self.args.age