From 8d2e32438eedc95e4d0f2f27d4129032ea7230a0 Mon Sep 17 00:00:00 2001 From: bobwen-dev <77950078+bobwen-dev@users.noreply.github.com> Date: Mon, 25 Jan 2021 16:22:25 +0800 Subject: [PATCH] Update README.md --- README.md | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index e3cc7f8..6810508 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Change default protocol to 'http' htpdate -s -p http www.pool.ntp.org ``` -Mix http url and https url +Mix http and https URLs ```bash htpdate -s http://www.pool.ntp.org https://www.openssl.org @@ -37,11 +37,13 @@ htpdate -s www.pool.ntp.org ## Usage -`htpdate [options...] urls...` + +`htpdate [options...] URLs...` ### Options + ``` - -c, --count The number of requests for each url + -c, --count The number of requests for each URL Default: 4 -C, --command Command to adjust system time, in https://day.js.org/ display format @@ -57,7 +59,7 @@ htpdate -s www.pool.ntp.org -m, --method HTTP method Default: 'HEAD' - -p, --protocol Use this protocol when no protocol is specified in the url + -p, --protocol Use this protocol when no protocol is specified in the URL Default: 'https' -r, --redirect If redirect responses should be followed @@ -81,11 +83,12 @@ htpdate -s www.pool.ntp.org ## Install -### Precompiled package -Download the precompiled binary package from [Releases page](https://github.com/bobwen-dev/htpdate/releases), uncompress it, and run it independently as an executable +- Precompiled package -### Install by npm + Download the precompiled binary package from [Releases page](https://github.com/bobwen-dev/htpdate/releases), uncompress it, and run it independently as an executable -```bash -npm i -g https://github.com/bobwen-dev/htpdate -``` +- Install by npm + + ```bash + npm i -g https://github.com/bobwen-dev/htpdate + ```