def _cli_download_url(cli):
    u"""Download from 'url' into file 'fname'"""
    verbose = False
    try:
        verbose = cli.OUT.isatty()
    except AttributeError:
        pass
    verbose = verbose and not cli.quiet
    if cli.fname.EXISTS:
        raise cli.Error(42, 'file %s already exists' % cli.fname)
    cli.fname.download(cli.url, chunksize=cli.chunksize, ticker=verbose,
        pipe=cli.OUT)
    if verbose:
        cli.OUT.write("download of '%s' succeed\n" % cli.fname)
