mirror of https://github.com/bobwen-dev/htpdate
Improve the help information
This commit is contained in:
parent
8507c51777
commit
b384e4879d
|
@ -25,14 +25,14 @@ htpdate -s -p http www.pool.ntp.org
|
||||||
Mix http url and https url
|
Mix http url and https url
|
||||||
|
|
||||||
```bash
|
```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
|
Access through a http proxy
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
export http_proxy=http://127.0.0.1:8118
|
export http_proxy=http://127.0.0.1:8118
|
||||||
htpdate www.pool.ntp.org
|
htpdate -s www.pool.ntp.org
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
11
argv.coffee
11
argv.coffee
|
@ -83,18 +83,21 @@ print_usage = (options) ->
|
||||||
print_examples = (exam = []) ->
|
print_examples = (exam = []) ->
|
||||||
console.log """
|
console.log """
|
||||||
Examples
|
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
|
#{info.name} www.pool.ntp.org www.openssl.org nodejs.org
|
||||||
|
|
||||||
Change default protocol to 'http'
|
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
|
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
|
Access through a http proxy
|
||||||
#{if platform is 'win32' then 'set' else 'export'} http_proxy=http://127.0.0.1:8118
|
#{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
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue