{"id":25908145,"url":"https://github.com/bonnyad9/pareg","last_synced_at":"2025-07-24T15:35:13.234Z","repository":{"id":233632286,"uuid":"787605891","full_name":"BonnyAD9/pareg","owner":"BonnyAD9","description":"Helpful utilities for parsing command line arguments and parsing in general.","archived":false,"fork":false,"pushed_at":"2025-06-21T08:05:39.000Z","size":237,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-03T04:41:21.716Z","etag":null,"topics":["arguments","arguments-parser","arguments-parsing","cli","parser","parsing","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/BonnyAD9.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2024-04-16T20:57:59.000Z","updated_at":"2025-06-21T08:05:43.000Z","dependencies_parsed_at":"2024-04-17T00:41:39.965Z","dependency_job_id":"1d38c1d3-77c2-44cb-99b6-4d606c108bea","html_url":"https://github.com/BonnyAD9/pareg","commit_stats":null,"previous_names":["bonnyad9/pareg"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/BonnyAD9/pareg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BonnyAD9%2Fpareg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BonnyAD9%2Fpareg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BonnyAD9%2Fpareg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BonnyAD9%2Fpareg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BonnyAD9","download_url":"https://codeload.github.com/BonnyAD9/pareg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BonnyAD9%2Fpareg/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266862623,"owners_count":23996866,"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","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["arguments","arguments-parser","arguments-parsing","cli","parser","parsing","rust"],"created_at":"2025-03-03T07:17:10.640Z","updated_at":"2025-07-24T15:35:13.201Z","avatar_url":"https://github.com/BonnyAD9.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pareg\n[![crates.io][version-badge]][crate]\n[![donwloads][downloads-badge]][releases]\n\nHelpful utilities for parsing command line arguments.\n\nThe aim of this crate is not to automate parsing of command line arguments\nbecause there are many ways to construct a CLI for your application and\nuniversal parser is not would be as hard to use as just writing it yourself.\nInstead this crate provides useful types and parsing funcitonality to make the\nprocess of writing your own code to parse command line arguments as simple as\npossible: It provides special struct for parsing the arguments in various ways\nand plenty of useful parsing functions and macros. Everything is made to\nminimize the repetetive part of the code for parsing the arguments and\nproviding very user friendly error messages out of the box. If you wan't to see\nexamples see [docs][docs].\n\n### Main constructs:\n- `Pareg`: istruct that will help with parsing of arguments.\n- `FromArg`: trait simmilar to `FromStr`. It is used by all the parsing\n  functionality in this crate. There is also simple derive macro for enums.\n    - It is implemented for all types in standard library that implement\n      `FromStr` and there is simple trait to just mark `FromStr` implementation\n      as also `FromArg`: `FromArgStr`.\n- macros `starts_any` and `has_any_key`: useful for checking argument types.\n\n### Example error message\n```txt\nargument error: Unknown option `no`.\n--\u003e arg1:8..10\n |\n $ my-program --color=no\n |                    ^^ Unknown option.\nhint: Valid options are: `auto`, `always`, `never`.\n```\n\n## How to use it\nDocumentation and examples are available at the [docs][docs].\n\n## How to get it\nIt is available on [crates.io][crate]:\n\n### With cargo\n```shell\ncargo add pareg\n```\n\n### In Cargo.toml\n```toml\n[dependencies]\npareg = \"0.1.0\"\n```\n\n## Links\n- **Author:** [BonnyAD9][author]\n- **GitHub repository:** [BonnyAD/pareg][repo]\n- **Package:** [crates.io][crate]\n- **Documentation:** [docs.rs][docs]\n- **My Website:** [bonnyad9.github.io][my-web]\n\n[version-badge]: https://img.shields.io/crates/v/pareg\n[downloads-badge]: https://img.shields.io/crates/d/pareg\n[author]: https://github.com/BonnyAD9\n[repo]: https://github.com/BonnyAD9/pareg\n[docs]: https://docs.rs/pareg/latest/pareg/\n[crate]: https://crates.io/crates/pareg\n[my-web]: https://bonnyad9.github.io/\n[releases]: https://github.com/BonnyAD9/pareg/releases\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbonnyad9%2Fpareg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbonnyad9%2Fpareg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbonnyad9%2Fpareg/lists"}