Improve the help information

This commit is contained in:
bobwen-dev 2021-01-25 14:48:42 +08:00
parent 8507c51777
commit b384e4879d
2 changed files with 9 additions and 6 deletions

View File

@ -25,14 +25,14 @@ htpdate -s -p http www.pool.ntp.org
Mix http url and https url
```bash
htpdate http://www.pool.ntp.org https://www.openssl.org
htpdate -s http://www.pool.ntp.org https://www.openssl.org
```
Access through a http proxy
```bash
export http_proxy=http://127.0.0.1:8118
htpdate www.pool.ntp.org
htpdate -s www.pool.ntp.org
```

View File

@ -83,18 +83,21 @@ print_usage = (options) ->
print_examples = (exam = []) ->
console.log """
Examples
Get time from multiple URLs
Synchronize time from multiple URLs
#{info.name} -s www.pool.ntp.org www.openssl.org nodejs.org
Query time from multiple URLs
#{info.name} www.pool.ntp.org www.openssl.org nodejs.org
Change default protocol to 'http'
#{info.name} --protocol http www.pool.ntp.org
#{info.name} -s -p http www.pool.ntp.org
Mix http url and https url
#{info.name} http://www.pool.ntp.org https://www.openssl.org
#{info.name} -s http://www.pool.ntp.org https://www.openssl.org
Access through a http proxy
#{if platform is 'win32' then 'set' else 'export'} http_proxy=http://127.0.0.1:8118
#{info.name} www.pool.ntp.org
#{info.name} -s www.pool.ntp.org
"""