When I try to download a file using bat with the --download argument the following error message is produced:
flag provided but not defined: -download
bat is a Go implemented CLI cURL-like tool for humans.
Usage:
bat [flags] [METHOD] URL [ITEM [ITEM]]
flags:
-a, -auth=USER[:PASS] Pass a username:password pair as the argument
-f, -form=false Submitting the data as a form
-j, -json=true Send the data in a JSON object
-v, -verbose=false Print the whole HTTP exchange (request and response)
-p, -pretty=true Print Json Pretty Fomat
-proxy=PROXY_URL Proxy with host and port
METHOD:
bat defaults to either GET (if there is no request data) or POST (with request data).
URL:
The only information needed to perform a request is a URL. The default scheme is http://,
which can be omitted from the argument; example.org works just fine.
ITEM:
Can be any of:
Query string key=value
Header key:value
Post data key=value
File upload key@/path/file
Example:
bat beego.me
more help information please refer to https://github.com/astaxie/bat
I tried the following with the same result:
bat --download https://aur.archlinux.org/packages/la/lastpass-cli/lastpass-cli.tar.gz
bat -download https://aur.archlinux.org/packages/la/lastpass-cli/lastpass-cli.tar.gz
Downloading the same file with bat https://aur.archlinux.org/packages/la/lastpass-cli/lastpass-cli.tar.gz > lastpass-cli.tar.gz does work though. I don't know if this is a bug or if the example in the README is bad.
When I try to download a file using bat with the
--download
argument the following error message is produced:I tried the following with the same result:
Downloading the same file with
bat https://aur.archlinux.org/packages/la/lastpass-cli/lastpass-cli.tar.gz > lastpass-cli.tar.gz
does work though. I don't know if this is a bug or if the example in the README is bad.