#coding:utf-8
import os,sys
from multiwget import FileMwget

fileurl = 'http://mirrors.163.com/centos/7/isos/x86_64/CentOS-7-x86_64-NetInstall-1503.iso'

def test():
    if sys.argv[1:]:
        mfile = sys.argv[1]
    else:
        print 'give me url'
        sys.exit()
    
    down = FileMwget(mfile, debug=True)
    down.run()
    print down.get_report()

if __name__=="__main__":
    test()
