[help] Update command usage help

This commit is contained in:
Ciprian Dorin Craciun 2018-11-15 20:17:52 +02:00
parent 2b86d7880c
commit afdd11a33e
3 changed files with 50 additions and 22 deletions

View file

@ -135,12 +135,9 @@ The project provides two binaries:
:: ::
Usage of cdb-http-archiver: Usage of cdb-http-archiver:
--sources string --sources <path>
<path> --archive <path>
--archive string --compress <gzip | brotli | identity>
<path>
--compress string
gzip | brotli
--debug --debug
@ -156,11 +153,15 @@ The project provides two binaries:
:: ::
Usage of cdb-http-server: Usage of cdb-http-server:
--archive string --archive <path>
<path> --archive-inmem (memory-loaded archive file)
--bind string --archive-mmap (memory-mapped archive file)
<ip>:<port> --archive-preload (preload archive file)
--preload --bind <ip>:<port>
--processes <count> (of slave processes)
--threads <count> (of threads per process)
--profile-cpu <path>
--profile-mem <path>
--debug --debug

View file

@ -390,9 +390,20 @@ func main_0 () (error) {
{ {
_flags := flag.NewFlagSet ("cdb-http-archiver", flag.ContinueOnError) _flags := flag.NewFlagSet ("cdb-http-archiver", flag.ContinueOnError)
_sourcesFolder_0 := _flags.String ("sources", "", "<path>") _flags.Usage = func () () {
_archiveFile_0 := _flags.String ("archive", "", "<path>") fmt.Fprintf (os.Stderr, "%s",
_compress_0 := _flags.String ("compress", "", "gzip | brotli | identity") `
cdb-http-archiver
--sources <path>
--archive <path>
--compress <gzip | brotli | identity>
--debug
`)
}
_sourcesFolder_0 := _flags.String ("sources", "", "")
_archiveFile_0 := _flags.String ("archive", "", "")
_compress_0 := _flags.String ("compress", "", "")
_debug_0 := _flags.Bool ("debug", false, "") _debug_0 := _flags.Bool ("debug", false, "")
FlagsParse (_flags, 0, 0) FlagsParse (_flags, 0, 0)

View file

@ -271,18 +271,34 @@ func main_0 () (error) {
{ {
_flags := flag.NewFlagSet ("cdb-http-server", flag.ContinueOnError) _flags := flag.NewFlagSet ("cdb-http-server", flag.ContinueOnError)
_bind_0 := _flags.String ("bind", "", "<ip>:<port>") _flags.Usage = func () () {
_archive_0 := _flags.String ("archive", "", "<path>") fmt.Fprintf (os.Stderr, "%s",
_archiveInmem_0 := _flags.Bool ("archive-inmem", false, "(memory-loaded archive file)") `
_archiveMmap_0 := _flags.Bool ("archive-mmap", false, "(memory-mapped archive file)") cdb-http-server
_archivePreload_0 := _flags.Bool ("archive-preload", false, "(preload archive file)") --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
`)
}
_bind_0 := _flags.String ("bind", "", "")
_archive_0 := _flags.String ("archive", "", "")
_archiveInmem_0 := _flags.Bool ("archive-inmem", false, "")
_archiveMmap_0 := _flags.Bool ("archive-mmap", false, "")
_archivePreload_0 := _flags.Bool ("archive-preload", false, "")
_processes_0 := _flags.Uint ("processes", 0, "") _processes_0 := _flags.Uint ("processes", 0, "")
_threads_0 := _flags.Uint ("threads", 0, "") _threads_0 := _flags.Uint ("threads", 0, "")
_profileCpu_0 := _flags.String ("profile-cpu", "", "")
_profileMem_0 := _flags.String ("profile-mem", "", "")
_debug_0 := _flags.Bool ("debug", false, "") _debug_0 := _flags.Bool ("debug", false, "")
_profileCpu_0 := _flags.String ("profile-cpu", "", "<path>")
_profileMem_0 := _flags.String ("profile-mem", "", "<path>")
FlagsParse (_flags, 0, 0) FlagsParse (_flags, 0, 0)
_bind = *_bind_0 _bind = *_bind_0