{"id":72512,"library":"sircmpwn-getopt","title":"Getopt","description":"A POSIX-compatible implementation of getopt(3) for Go, providing command-line option parsing.","status":"active","version":"1.0.0","language":"go","source_language":null,"source_url":"https://git.sr.ht/~sircmpwn/getopt","tags":["cli","getopt","posix","command-line"],"install":[{"cmd":"go get git.sr.ht/~sircmpwn/getopt","lang":"bash","label":"Install git.sr.ht/~sircmpwn/getopt"}],"dependencies":[],"imports":[{"symbol":"getopt","correct":"git.sr.ht/~sircmpwn/getopt"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"git.sr.ht/~sircmpwn/getopt\"\n\t\"os\"\n)\n\nfunc main() {\n\topts, args, err := getopt.GetOpt(os.Args[1:], \"ab:c\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Println(opts, args)\n}","lang":"go","description":"Parse command-line options with a POSIX-compatible getopt."},"warnings":[],"env_vars":null,"search_vec":"'3':9 'cli':18 'command':14,22 'command-lin':13,21 'compat':5 'getopt':1,8,19 'go':11 'implement':6 'line':15,23 'option':16 'pars':17 'posix':4,20 'posix-compat':3 'provid':12","created_at":"2026-06-17T18:39:51.135827+00:00","updated_at":"2026-06-17T18:39:51.135827+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://git.sr.ht/~sircmpwn/getopt","github":null,"docs":"https://pkg.go.dev/git.sr.ht/~sircmpwn/getopt#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}}