28 lines
504 B
Go
28 lines
504 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:
|
|
|
|
write Write user's bytes / uint32s / flags
|
|
read Read user's bytes / uint32s / flags
|
|
|
|
"help" is the default command.
|
|
|
|
Use "saastool [command] -help" for more information about a command.
|
|
`
|
|
|
|
// strip Stripping redundant data from redis
|