[help] Add banner to help messages

This commit is contained in:
Ciprian Dorin Craciun 2018-11-18 17:50:08 +02:00
parent 692dcdcc5f
commit cd07d24e6a
2 changed files with 68 additions and 18 deletions

View file

@ -557,13 +557,37 @@ func main_0 () (error) {
_flags.Usage = func () () { _flags.Usage = func () () {
fmt.Fprintf (os.Stderr, "%s", fmt.Fprintf (os.Stderr, "%s",
` `
cdb-http-archiver ==== kawipiko -- blazingly fast static HTTP server ====
--sources <path>
--archive <path> | Documentation, issues and sources:
--compress <gzip | brotli | identity> | * https://bit.ly/kawipiko
--exclude-index | * https://github.com/cipriancraciun/go-cdb-http
--include-metadata
--debug | Authors:
| * Ciprian Dorin Craciun
| ciprian@volution.ro
| ciprian.craciun@gmail.com
| https://volution.ro/ciprian
| Leverages:
| * https://github.com/valyala/fasthttp
| * https://github.com/colinmarc/cdb
| * https://cr.yp.to/cdb.html
| * https://golang.org/
-----------------------------------------------------------
cdb-http-archiver
--sources <path>
--archive <path>
--compress <gzip | brotli | identity>
--exclude-index
--include-metadata
--debug
`) `)
} }

View file

@ -368,17 +368,43 @@ func main_0 () (error) {
_flags.Usage = func () () { _flags.Usage = func () () {
fmt.Fprintf (os.Stderr, "%s", fmt.Fprintf (os.Stderr, "%s",
` `
cdb-http-server ==== kawipiko -- blazingly fast static HTTP server ====
--archive <path>
--archive-inmem (memory-loaded archive file) | Documentation, issues and sources:
--archive-mmap (memory-mapped archive file) | * https://bit.ly/kawipiko
--archive-preload (preload archive file) | * https://github.com/cipriancraciun/go-cdb-http
--bind <ip>:<port>
--processes <count> (of slave processes) | Authors:
--threads <count> (of threads per process) | * Ciprian Dorin Craciun
--profile-cpu <path> | ciprian@volution.ro
--profile-mem <path> | ciprian.craciun@gmail.com
--debug | https://volution.ro/ciprian
| Leverages:
| * https://github.com/valyala/fasthttp
| * https://github.com/colinmarc/cdb
| * https://cr.yp.to/cdb.html
| * https://golang.org/
-----------------------------------------------------------
cdb-http-server
--archive <path>
--archive-inmem (memory-loaded archive file)
--archive-mmap (memory-mapped archive file)
--archive-preload (preload archive file)
--bind <ip>:<port>
--processes <count> (of slave processes)
--threads <count> (of threads per process)
--profile-cpu <path>
--profile-mem <path>
--debug
`) `)
} }