27 lines
482 B
Go
27 lines
482 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"strings"
|
|
)
|
|
|
|
// RunHelp 帮助
|
|
func RunHelp(args ...string) error {
|
|
fmt.Println(strings.TrimSpace(usage))
|
|
return nil
|
|
}
|
|
|
|
const usage = `
|
|
Usage: [[command] [arguments]]
|
|
|
|
The commands are:
|
|
|
|
makebloom Make bloom filter bitmap file
|
|
hittest Hittest text lines in bitmap
|
|
info Show bitmap file info
|
|
|
|
"help" is the default command.
|
|
|
|
Use "bloomtool [command] -help" for more information about a command.
|
|
`
|