Example #1
0
File: exec.go Project: Cdim/pholcus
func DefaultRun(uiDefault string) {
	flag.String("a . . . . . . . . . . . . .. . . . . . . . . . . common . . . . . . . . . . . . . .. . . . . . . . . . a", "common", "\r\n")
	ui := flag.String("a_ui", uiDefault, "   <选择操作界面> {web} {gui} {cmd}\r\n\r\n")
	web.Flag()
	cmd.Flag()
	flag.String("z", "readme", "   参数设置参考 {value} 提示,参数中包含多个值时以 \",\" 间隔\r\n")
	flag.Parse()
	run(*ui)
}
Example #2
0
func DefaultRun(uiDefault string) {
	fmt.Printf("%v\n\n", config.FULL_NAME)
	flag.String("a *********************************************** common *********************************************** -a", "", "")
	// 操作界面
	uiflag = flag.String("_ui", uiDefault, "   <选择操作界面> [web] [gui] [cmd]")
	flagCommon()
	web.Flag()
	cmd.Flag()
	flag.String("z", "", "README:   参数设置参考 [xxx] 提示,参数中包含多个值时以 \",\" 间隔。\r\n")
	flag.Parse()
	writeFlag()
	run(*uiflag)
}