diff --git a/documentation/readme.rst b/documentation/readme.rst index 5220c69..3e649e5 100644 --- a/documentation/readme.rst +++ b/documentation/readme.rst @@ -135,12 +135,9 @@ The project provides two binaries: :: Usage of cdb-http-archiver: - --sources string - - --archive string - - --compress string - gzip | brotli + --sources + --archive + --compress --debug @@ -156,11 +153,15 @@ The project provides two binaries: :: Usage of cdb-http-server: - --archive string - - --bind string - : - --preload + --archive + --archive-inmem (memory-loaded archive file) + --archive-mmap (memory-mapped archive file) + --archive-preload (preload archive file) + --bind : + --processes (of slave processes) + --threads (of threads per process) + --profile-cpu + --profile-mem --debug diff --git a/sources/cmd/archiver.go b/sources/cmd/archiver.go index c1e5321..c60529e 100644 --- a/sources/cmd/archiver.go +++ b/sources/cmd/archiver.go @@ -390,9 +390,20 @@ func main_0 () (error) { { _flags := flag.NewFlagSet ("cdb-http-archiver", flag.ContinueOnError) - _sourcesFolder_0 := _flags.String ("sources", "", "") - _archiveFile_0 := _flags.String ("archive", "", "") - _compress_0 := _flags.String ("compress", "", "gzip | brotli | identity") + _flags.Usage = func () () { + fmt.Fprintf (os.Stderr, "%s", +` +cdb-http-archiver + --sources + --archive + --compress + --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) diff --git a/sources/cmd/server.go b/sources/cmd/server.go index 229d148..3452731 100644 --- a/sources/cmd/server.go +++ b/sources/cmd/server.go @@ -271,18 +271,34 @@ func main_0 () (error) { { _flags := flag.NewFlagSet ("cdb-http-server", flag.ContinueOnError) - _bind_0 := _flags.String ("bind", "", ":") - _archive_0 := _flags.String ("archive", "", "") - _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 + --archive-inmem (memory-loaded archive file) + --archive-mmap (memory-mapped archive file) + --archive-preload (preload archive file) + --bind : + --processes (of slave processes) + --threads (of threads per process) + --profile-cpu + --profile-mem + --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", "", "") - _profileMem_0 := _flags.String ("profile-mem", "", "") - FlagsParse (_flags, 0, 0) _bind = *_bind_0