1 Star 0 Fork 329

lordlight/HFish

forked from HFish/HFish 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
main.go 486 Bytes
一键复制 编辑 原始数据 按行查看 历史
lauix 提交于 2019-08-26 23:44 +08:00 . 更新0.3
package main
import (
"fmt"
"os"
"HFish/utils/setting"
)
func main() {
args := os.Args
if args == nil || len(args) < 2 {
setting.Help()
} else {
if args[1] == "help" || args[1] == "--help" {
setting.Help()
} else if args[1] == "init" || args[1] == "--init" {
setting.Init()
} else if args[1] == "version" || args[1] == "--version" {
fmt.Println("v0.3")
} else if args[1] == "run" || args[1] == "--run" {
setting.Run()
} else {
setting.Help()
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/lordlight/HFish.git
[email protected]:lordlight/HFish.git
lordlight
HFish
HFish
master

搜索帮助