v2 / vlib / v / help / other / download.txt
21 lines · 18 sloc · 1.35 KB · 7002411a045ee6b7b5adc7ea75dd86ff2d38b822
Raw
vdownload 0.0.1
-----------------------------------------------
Usage: vdownload [options] URL1 URL2 ...

Description: Download files from http/https servers, given their URLs.

The arguments should be at least 1 in number.

Options:
  -h, --help                Show this help screen.
  -t, --target-folder 
                            The target folder, where the file will be stored. It will be created, if it does not exist. Default is current folder.
  -o, --output      Write output to the given file, instead of inferring it from the final part of the URL. All intermediate folders will be created, if they do not exist.
  -1, --sha1                Show the SHA1 hash of the downloaded file.
  -2, --sha256              Show the SHA256 hash of the downloaded file.
  -3, --sha3-256            Show the SHA3-256 (Keccak) hash of the downloaded file.
  -c, --continue            Continue on download failures. If you download 5 URLs, and several of them fail, continue without error. False by default.
  -r, --retries        Number of retries, when an URL fails to download. The default is 10.
  -d, --delay        Delay in seconds, after each retry. The default is 1 second.
  -R, --run                 Run, after the script/program is completely downloaded.
  -D, --delete-after-run    Delete the downloaded script/program, after it has been run.