[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",
` `
==== kawipiko -- blazingly fast static HTTP server ====
| Documentation, issues and sources:
| * https://bit.ly/kawipiko
| * https://github.com/cipriancraciun/go-cdb-http
| 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 cdb-http-archiver
--sources <path> --sources <path>
--archive <path> --archive <path>
--compress <gzip | brotli | identity> --compress <gzip | brotli | identity>
--exclude-index --exclude-index
--include-metadata --include-metadata
--debug --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",
` `
==== kawipiko -- blazingly fast static HTTP server ====
| Documentation, issues and sources:
| * https://bit.ly/kawipiko
| * https://github.com/cipriancraciun/go-cdb-http
| 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-server cdb-http-server
--archive <path> --archive <path>
--archive-inmem (memory-loaded archive file) --archive-inmem (memory-loaded archive file)
--archive-mmap (memory-mapped archive file) --archive-mmap (memory-mapped archive file)
--archive-preload (preload archive file) --archive-preload (preload archive file)
--bind <ip>:<port> --bind <ip>:<port>
--processes <count> (of slave processes) --processes <count> (of slave processes)
--threads <count> (of threads per process) --threads <count> (of threads per process)
--profile-cpu <path> --profile-cpu <path>
--profile-mem <path> --profile-mem <path>
--debug --debug
`) `)
} }