{"id":19380139,"url":"https://github.com/hrszpuk/odin-flag","last_synced_at":"2026-03-19T09:32:40.435Z","repository":{"id":211584564,"uuid":"662709451","full_name":"hrszpuk/odin-flag","owner":"hrszpuk","description":"Command-line flags package for odin","archived":false,"fork":false,"pushed_at":"2023-12-09T17:54:01.000Z","size":164,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-21T06:30:29.911Z","etag":null,"topics":["command-line","library","odin","odin-lang","odin-programming-language","package"],"latest_commit_sha":null,"homepage":"","language":"Odin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hrszpuk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-05T18:02:58.000Z","updated_at":"2023-12-09T12:44:29.000Z","dependencies_parsed_at":"2024-11-10T09:12:54.462Z","dependency_job_id":"fb806c63-70e1-4a93-a6ce-df8b1b4a9da0","html_url":"https://github.com/hrszpuk/odin-flag","commit_stats":null,"previous_names":["hrszpuk/odin-flag"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/hrszpuk/odin-flag","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrszpuk%2Fodin-flag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrszpuk%2Fodin-flag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrszpuk%2Fodin-flag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrszpuk%2Fodin-flag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hrszpuk","download_url":"https://codeload.github.com/hrszpuk/odin-flag/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrszpuk%2Fodin-flag/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29444040,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T12:43:28.304Z","status":"ssl_error","status_checked_at":"2026-02-14T12:43:14.160Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["command-line","library","odin","odin-lang","odin-programming-language","package"],"created_at":"2024-11-10T09:12:50.078Z","updated_at":"2026-02-14T13:02:09.419Z","avatar_url":"https://github.com/hrszpuk.png","language":"Odin","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n    Odin-flag\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n    A simple, easy to use command line flag parser for Odin.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"./LICENSE.md\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/hrszpuk\"\u003e\u003cimg src=\"https://img.shields.io/github/followers/hrszpuk?style=social\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/hrszpuk/odin-flag/issues\"\u003e\u003cimg src=\"https://img.shields.io/github/issues/hrszpuk/odin-flag\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/hrszpuk/odin-flag#Installation\"\u003eInstallation\u003c/a\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\n    \u003ca href=\"https://github.com/hrszpuk/odin-flag/blob/main/USER_GUIDE.md\"\u003eUser Guide\u003c/a\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\n    \u003ca href=\"https://github.com/hrszpuk/odin-flag#Contributing\"\u003eContributing\u003c/a\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\n\u003c/p\u003e\n\n\u003chr /\u003e\n\n```odin\npackage main\n\nimport \"core:fmt\"\nimport flag \"../..\" // path to package\n\nmain :: proc() {\n    using flag\n\n    flags := flagset()\n\n    count := 1\n    send := false\n    msg: string\n\n    flags-\u003eadd(\"count\", \u0026count, int)\n    flags-\u003eadd(\"send\", \u0026send, bool)\n    flags-\u003eadd(\"msg\", \u0026msg, string)\n\n    flags-\u003eparse()\n    \n    if send {\n        for _ in 0..\u003ccount {\n            fmt.println(msg)\n        }\n    }\n\n    flags-\u003efree()\n}\n```\n✨ For more examples see the \u003ca href=\"https://github.com/hrszpuk/odin-flag/blob/main/USER_GUIDE.md\"\u003eUser Guide\u003c/a\u003e ✨\n\n## Installation\nThe recommended way to install odin-flag is to use git submodules.\n\nIn your project, create a directory called \"external\" (or alternative name) and run the command below.\n```\ngit submodule add https://github.com/hrszpuk/odin-flag external/odin-flag\n```\nFrom your project directory you can access the library like in the code below.\n```odin\npackage main\n\nimport flag \"external/odin-flag\"\n\nmain :: proc() {\n    using flag\n\n    flag := flagset()\n\n    // ...\n\n    flag-\u003efree()\n}\n```\n**NOTE:** the path to odin-flag may be different depending on where odin-flag is installed and where you are trying to access odin-flag from.\nYour first step to troubleshoot installation issues is to check where odin-flag is installed and where you are trying to access odin-flag from.\n\n## Contributing\nIf you wish to contribute new features, report/fix a bug, or discuss changes/additions to the product please create an issue.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrszpuk%2Fodin-flag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhrszpuk%2Fodin-flag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrszpuk%2Fodin-flag/lists"}