[help] Update command usage help
This commit is contained in:
parent
2b86d7880c
commit
afdd11a33e
3 changed files with 50 additions and 22 deletions
|
@ -135,12 +135,9 @@ The project provides two binaries:
|
|||
::
|
||||
|
||||
Usage of cdb-http-archiver:
|
||||
--sources string
|
||||
<path>
|
||||
--archive string
|
||||
<path>
|
||||
--compress string
|
||||
gzip | brotli
|
||||
--sources <path>
|
||||
--archive <path>
|
||||
--compress <gzip | brotli | identity>
|
||||
--debug
|
||||
|
||||
|
||||
|
@ -156,11 +153,15 @@ The project provides two binaries:
|
|||
::
|
||||
|
||||
Usage of cdb-http-server:
|
||||
--archive string
|
||||
<path>
|
||||
--bind string
|
||||
<ip>:<port>
|
||||
--preload
|
||||
--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
|
||||
|
||||
|
||||
|
|
|
@ -390,9 +390,20 @@ func main_0 () (error) {
|
|||
{
|
||||
_flags := flag.NewFlagSet ("cdb-http-archiver", flag.ContinueOnError)
|
||||
|
||||
_sourcesFolder_0 := _flags.String ("sources", "", "<path>")
|
||||
_archiveFile_0 := _flags.String ("archive", "", "<path>")
|
||||
_compress_0 := _flags.String ("compress", "", "gzip | brotli | identity")
|
||||
_flags.Usage = func () () {
|
||||
fmt.Fprintf (os.Stderr, "%s",
|
||||
`
|
||||
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, "")
|
||||
|
||||
FlagsParse (_flags, 0, 0)
|
||||
|
|
|
@ -271,18 +271,34 @@ func main_0 () (error) {
|
|||
{
|
||||
_flags := flag.NewFlagSet ("cdb-http-server", flag.ContinueOnError)
|
||||
|
||||
_bind_0 := _flags.String ("bind", "", "<ip>:<port>")
|
||||
_archive_0 := _flags.String ("archive", "", "<path>")
|
||||
_archiveInmem_0 := _flags.Bool ("archive-inmem", false, "(memory-loaded archive file)")
|
||||
_archiveMmap_0 := _flags.Bool ("archive-mmap", false, "(memory-mapped archive file)")
|
||||
_archivePreload_0 := _flags.Bool ("archive-preload", false, "(preload archive file)")
|
||||
_flags.Usage = func () () {
|
||||
fmt.Fprintf (os.Stderr, "%s",
|
||||
`
|
||||
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
|
||||
`)
|
||||
}
|
||||
|
||||
_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, "")
|
||||
_threads_0 := _flags.Uint ("threads", 0, "")
|
||||
_profileCpu_0 := _flags.String ("profile-cpu", "", "")
|
||||
_profileMem_0 := _flags.String ("profile-mem", "", "")
|
||||
_debug_0 := _flags.Bool ("debug", false, "")
|
||||
|
||||
_profileCpu_0 := _flags.String ("profile-cpu", "", "<path>")
|
||||
_profileMem_0 := _flags.String ("profile-mem", "", "<path>")
|
||||
|
||||
FlagsParse (_flags, 0, 0)
|
||||
|
||||
_bind = *_bind_0
|
||||
|
|
Loading…
Reference in a new issue