{"id":74700,"library":"zmap-zflags","title":"ZMap ZFlags","description":"An extensive command line option parser for Go, similar to the built-in flag package but with more features and reflection-based option specification.","status":"active","version":"1.3.0","language":"go","source_language":null,"source_url":"https://github.com/zmap/zflags","tags":["flags","command-line","parser","reflection"],"install":[{"cmd":"go get github.com/zmap/zflags","lang":"bash","label":"Install github.com/zmap/zflags"}],"dependencies":[],"imports":[{"symbol":"flags","correct":"github.com/zmap/zflags"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/zmap/zflags\"\n)\n\nvar opts struct {\n\tVerbose []bool `short:\"v\" long:\"verbose\" description:\"Show verbose output\"`\n}\n\nfunc main() {\n\t_, err := flags.Parse(&opts)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Printf(\"Verbose: %v\\n\", opts.Verbose)\n}","lang":"go","description":"Parses command-line flags using struct tags."},"warnings":[{"fix":"Consider using the standard flag package for simple use cases.","message":"The package uses reflection for flag parsing, which may have performance implications for large structs.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'base':26 'built':15 'built-in':14 'command':5,31 'command-lin':30 'extens':4 'featur':22 'flag':17,29 'go':10 'line':6,32 'option':7,27 'packag':18 'parser':8,33 'reflect':25,34 'reflection-bas':24 'similar':11 'specif':28 'zflag':2 'zmap':1","created_at":"2026-06-17T19:07:12.814950+00:00","updated_at":"2026-06-17T19:07:12.814950+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/zmap/zflags","github":"https://github.com/zmap/zflags","docs":"https://pkg.go.dev/github.com/zmap/zflags#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["cli"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}