{"id":28758988,"url":"https://github.com/cameronmore/zarg","last_synced_at":"2025-06-17T05:02:18.654Z","repository":{"id":299522035,"uuid":"1003240840","full_name":"cameronmore/ZARG","owner":"cameronmore","description":"A command line argument parser for Zig applications","archived":false,"fork":false,"pushed_at":"2025-06-17T00:31:22.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-17T01:29:21.309Z","etag":null,"topics":["command-line-tool","zig","ziglang"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cameronmore.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"zenodo":null}},"created_at":"2025-06-16T21:00:28.000Z","updated_at":"2025-06-17T01:08:48.000Z","dependencies_parsed_at":"2025-06-17T01:30:33.545Z","dependency_job_id":"560936aa-3fe8-4089-bf50-910eafda9b32","html_url":"https://github.com/cameronmore/ZARG","commit_stats":null,"previous_names":["cameronmore/zarg"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cameronmore/ZARG","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cameronmore%2FZARG","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cameronmore%2FZARG/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cameronmore%2FZARG/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cameronmore%2FZARG/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cameronmore","download_url":"https://codeload.github.com/cameronmore/ZARG/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cameronmore%2FZARG/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260294439,"owners_count":22987619,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-tool","zig","ziglang"],"created_at":"2025-06-17T05:01:00.923Z","updated_at":"2025-06-17T05:02:18.630Z","avatar_url":"https://github.com/cameronmore.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ⚡ ZARG ⚡\n\nZARG is a lightweight Zig command ling argument module. Zarg offers a simple API and allows the user decide how to handle missing flags and values.\n\n### Why ZARG?\n\nZARG is simple. This makes ZARG easy to drop in to an existing project and update as the Zig programming language evolves and updates. ZARG is also lightweight enough to remove relatively easily if your needs change or want to swap in a different argument parsing module.\n\nStaying true to Zig's core principles, ZARG does not make any hidden allocators, leaving the user to decide how to store argument flags.\n\n### Features\n\n- ✅ Short and long flag matching\n- ✅ Help message printing\n- ✅ Boolean flag support\n- ✅ Sub-command argument support\n- ✅ Positional argument capturing\n- ❌ Multiple same-flag arguments\n\n### Documentation and Usage\n\nPlease see USAGE.md for documentation.\n\nTo pull and use, run:\n```shell\nzig fetch --save git+https://github.com/cameronmore/ZARG\n```\nAnd then in your build.zig file, add:\n```zig\nconst zargDep = b.dependency(\"zarg\", .{.target=target,.optimize=optimize});\nexe_mod.addImport(\"zarg\", zargDep.module(\"zarg\"));\n```\n\n\n### Use of Artificial Intelligence\n\nThis project was developed with the aid of artificial intelligence (AI) but not AI code-completion. I started this project to solve a practical problem I was having as well as learning Zig, so I used AI sparingly in writing the actual code.\n\n### Contributing and Licensing\n\nZARG welcomes bug reports, feature requests, and pull-requests! Please create a GitHub issue describing the problem or task and optionally link a pull request.\n\n**NOTE: ZARG is an Apache-2.0 project, and all contributions to this repository must comply with that license.**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcameronmore%2Fzarg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcameronmore%2Fzarg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcameronmore%2Fzarg/lists"}