#!/usr/bin/env python
# -*- coding: utf-8 -*-
# author = EASY
import argparse

def cmdline():
    parser = argparse.ArgumentParser(description="Finger scan --by EASY")
    target = parser.add_argument_group('Target')
    target.add_argument('-u',dest='url',type=str,help="Input your url target")
    target.add_argument('-f',dest='file',type=str,help="Input your target's file")
    ip = parser.add_argument_group('IP')
    ip.add_argument('-i',dest="ip",type=str,help="Input your ip target(127.0.0.1 , 127.0.0.1/24 or 127.0.0.10-127.0.0.45)")
    ip.add_argument('-if',dest='ipfile',type=str,help="Input your ip's file")
    output = parser.add_argument_group('Output')
    output.add_argument('-o',dest='output',type=str,default="html",help="Select the output format.eg(html,json,xls,default:html)")
    args = parser.parse_args()
    usage = '''
    Usage: python3 {0} -u http://www.baidu.com
    Usage: python3 {0} -f urls.txt
    Usage: python3 {0} -i 192.168.10.1 or 192.168.10.1/24 or 192.168.10.10-192.168.10.25
    Usage: python3 {0} -if ips.txt
    '''.format(parser.prog)
    return args

