update readme

This commit is contained in:
yggverse 2024-06-25 04:09:06 +03:00
parent 5079e733f8
commit 4c478c2e88

View file

@ -57,27 +57,27 @@ src/gemini-dl.php --source gemini://.. --target /path/to/download
### Options ### Options
``` bash ``` bash
## Required # Required
-s, --source - string, gemini protocol address -s, --source - string, gemini protocol address
-t, --target - string, absolute path to destination folder -t, --target - string, absolute path to destination folder
## Optional # Optional
-c, --crawl - no value, crawl document links (entire capsule download), disabled by default -c, --crawl - no value, crawl document links (entire capsule download), disabled by default
-d, --delay - integer, pause between requests (seconds), 1 by default -d, --delay - integer, pause between requests (seconds), 1 by default
-i, --index - string, index filename of directory listing, index.gmi by default -i, --index - string, index filename of directory listing, index.gmi by default
-h, --help - no value, show available commands -h, --help - no value, show available commands
-k, --keep - no value, keep original links (--crawl mode only), disabled by default -k, --keep - no value, keep original links (--crawl mode only), disabled by default
-m, --match - string, collect links match regex rule, /.*/ by default -m, --match - string, collect links match regex rule, /.*/ by default
-r, --raw - no value, include meta headers (--keep option ignored), disabled by default -r, --raw - no value, include meta headers (--keep option ignored), disabled by default
-u, --unique - no value, append snap version as folder timestamp, disabled by default -u, --unique - no value, append snap version as folder timestamp, disabled by default
## Experimental (in development) # Experimental (in development)
-e, --external - no value, follow external hosts, disabled by default -e, --external - no value, follow external hosts, disabled by default
-f, --follow - integer, follow redirects on --crawl, 0 by default -f, --follow - integer, follow redirects on --crawl, 0 by default
-l, --level - integer, depth to --crawl, 0 by default -l, --level - integer, depth to --crawl, 0 by default
``` ```
* show in CLI: `gemini-dl.php --help` * show in CLI: `gemini-dl.php --help`