企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
[TOC] > [github](https://github.com/urfave/cli) ## 概述 [v2 的使用手册](https://github.com/urfave/cli/blob/master/docs/v2/manual.md) ## 实例 ``` package main import ( "fmt" "log" "os" "github.com/urfave/cli/v2" ) func main() { app := &cli.App{ Name: "boom", Usage: "make an explosive entrance", Action: func(c *cli.Context) error { fmt.Println("boom! I say!") return nil }, } err := app.Run(os.Args) if err != nil { log.Fatal(err) } } ```