This commit is contained in:
bobwen-dev 2021-01-25 16:26:47 +08:00
commit c42416b29b
1 changed files with 13 additions and 10 deletions

View File

@ -22,7 +22,7 @@ Change default protocol to 'http'
htpdate -s -p http www.pool.ntp.org htpdate -s -p http www.pool.ntp.org
``` ```
Mix http url and https url Mix http and https URLs
```bash ```bash
htpdate -s http://www.pool.ntp.org https://www.openssl.org htpdate -s http://www.pool.ntp.org https://www.openssl.org
@ -37,11 +37,13 @@ htpdate -s www.pool.ntp.org
## Usage ## Usage
`htpdate [options...] urls...`
`htpdate [options...] URLs...`
### Options ### Options
``` ```
-c, --count The number of requests for each url -c, --count The number of requests for each URL
Default: 4 Default: 4
-C, --command Command to adjust system time, in https://day.js.org/ display format -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 -m, --method HTTP method
Default: 'HEAD' 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' Default: 'https'
-r, --redirect If redirect responses should be followed -r, --redirect If redirect responses should be followed
@ -81,11 +83,12 @@ htpdate -s www.pool.ntp.org
## Install ## Install
### Precompiled package - 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
### 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 - Install by npm
npm i -g https://github.com/bobwen-dev/htpdate
``` ```bash
npm i -g https://github.com/bobwen-dev/htpdate
```