1.spf13 / cobraA Commander for modern Go CLI interactionscobracobra-librarycobra-generatorposix-compliant-flagscommand-cobracli-app+10 moreGoAPACHE-2.045K total4.5K forks+106 starsfrom 44,638 · score 4.67
2.urfave / cliA declarative, simple, fast, and fun package for building command line tools in Gogolang-librarycommand-linegoyamlclijson+1 moreGoMIT24K total1.9K forks+43 starsfrom 24,262 · score 3.78
3.alecthomas / kongKong is a command-line parser for Gogogolangcommand-lineparsercommandsflags+2 moreGoMIT3.2K total202 forks+13 starsfrom 3,183 · score 2.64
4.spf13 / pflagDrop-in replacement for Go's flag package, implementing POSIX/GNU-style --flags.GoBSD-3-CLAUSE2.8K total402 forks+12 starsfrom 2,772 · score 2.56
5.alexflint / go-argStruct-based argument parsing in Goargument-parsinggolangGoBSD-2-CLAUSE2.3K total122 forks+6 starsfrom 2,283 · score 1.95
6.alecthomas / kingpinCONTRIBUTIONS ONLY: A Go (golang) command line and flag parsergokingpinclicommand-lineGoMIT3.6K total281 forks+1 starsfrom 3,566 · score 0.69
7.jessevdk / go-flagsgo command line option parserGoBSD-3-CLAUSE2.7K total330 forks+1 starsfrom 2,693 · score 0.69