{"id":21285333,"url":"https://github.com/izenynn/mini-arg","last_synced_at":"2025-03-15T15:12:34.415Z","repository":{"id":170715068,"uuid":"645829238","full_name":"izenynn/mini-arg","owner":"izenynn","description":"A simple library for argument parsing in C.","archived":false,"fork":false,"pushed_at":"2023-07-04T10:26:30.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T05:15:32.000Z","etag":null,"topics":["arg","args","args-parser","argument-parser","argument-parsing","c","lib","library","linux","macos"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/izenynn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-05-26T14:28:10.000Z","updated_at":"2023-05-29T16:50:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"e3c10fbe-48f0-4bf5-a9c6-bf373cdbbfd8","html_url":"https://github.com/izenynn/mini-arg","commit_stats":null,"previous_names":["izenynn/mini-arg"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izenynn%2Fmini-arg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izenynn%2Fmini-arg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izenynn%2Fmini-arg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izenynn%2Fmini-arg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/izenynn","download_url":"https://codeload.github.com/izenynn/mini-arg/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243746200,"owners_count":20341203,"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":["arg","args","args-parser","argument-parser","argument-parsing","c","lib","library","linux","macos"],"created_at":"2024-11-21T11:19:45.061Z","updated_at":"2025-03-15T15:12:34.389Z","avatar_url":"https://github.com/izenynn.png","language":"C","readme":"# mini-args\n\n## Info\n\nA simple library for argument parsing in C, inspired by `argp`.\n\n## Features\n\n- Long options.\n- Short key for long options.\n- Concatenated short options (`-abcDEF`).\n- Required argument (throws an error if a required argument is not provided for an option that needs it).\n- Required argument value (syntax: `-a VALUE` / `-aVALUE` / `--arg VALUE` / `--arg=VALUE`).\n- Optional argument value (value can be present or not).\n- Default value, useful for optional argument value (`miniarg_option-\u003earg`).\n- If short option requires argument, rest of the string will be treated as one.\n- Automatic `-h` and `--help`.\n- Automatic `--usage` (for now it doesn't print all options, just a simple usage message).\n- Automatic `-V` and `--version`.\n- Exposed function to print usage.\n- Normal arguments.\n- Count of normal arguments.\n- Notify when arguments end so you can perform all necessary action.\n- Supports `--`.\n- Access to glabal variable `marg_err_exit_status` to customize the error exit code.\n- Access to global varibale `marg_program_name` to help you with your own log functions.\n- Group your options, `-h/--help` message will also show the group description.\n\n## Usage\n\nDefine the following global vars:\n```c\nTODO...\n```\n\nTODO...\n\n##\n[![forthebadge](https://forthebadge.com/images/badges/made-with-c.svg)](https://forthebadge.com)\n[![forthebadge](https://forthebadge.com/images/badges/for-you.svg)](https://forthebadge.com)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fizenynn%2Fmini-arg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fizenynn%2Fmini-arg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fizenynn%2Fmini-arg/lists"}