def __init__(self, parser):
    parser.add_argument('-f', '--flood', action='store_true')
    parser.add_argument('--src', nargs='?', default='0.0.0.0', help='Source IP address for IP layer of ICMP packet\nDefault source address: google server')
    try:
        self.args = parser.parse_args()
        if (not self.args.ping):
            print('Host required!')
            parser.print_help()
            sys.exit(1)
    except BaseException:
        parser.print_help()
        sys.exit(1)
    self.host = self.args.ping
    self.src = self.args.src
    self.flood = self.args.flood
def __init__(self, parser):
    parser.add_argument('-f', '--flood', action='store_true')
    parser.add_argument('--src', nargs='?', default='0.0.0.0', help='Source IP address for IP layer of ICMP packet\nDefault source address: google server')
    try:
        self.args = parser.parse_args()
        if (not self.args.ping):
            print('Host required!')
            parser.print_help()
            sys.exit(1)
    except BaseException:
        parser.print_help()
        sys.exit(1)
    self.host = self.args.ping
    self.src = self.args.src
    self.flood = self.args.flood