示例#1
0
文件: main.go 项目: keybase/kbfs-beta
func getUsageStr() string {
	defaultBServer := libkbfs.GetDefaultBServer()
	if len(defaultBServer) == 0 {
		defaultBServer = "host:port"
	}
	defaultMDServer := libkbfs.GetDefaultMDServer()
	if len(defaultMDServer) == 0 {
		defaultMDServer = "host:port"
	}
	return fmt.Sprintf(usageFormatStr, defaultBServer, defaultMDServer)
}
示例#2
0
文件: main.go 项目: keybase/kbfs-beta
func getUsageStr() string {
	defaultBServer := libkbfs.GetDefaultBServer()
	if len(defaultBServer) == 0 {
		defaultBServer = "host:port"
	}
	defaultMDServer := libkbfs.GetDefaultMDServer()
	if len(defaultMDServer) == 0 {
		defaultMDServer = "host:port"
	}
	platformUsageString := libfuse.GetPlatformUsageString()
	return fmt.Sprintf(
		usageFormatStr, defaultBServer, defaultMDServer,
		platformUsageString, platformUsageString)
}