{"id":13503130,"url":"https://github.com/clap-rs/thunder","last_synced_at":"2025-03-29T13:30:48.093Z","repository":{"id":57669747,"uuid":"127042610","full_name":"clap-rs/thunder","owner":"clap-rs","description":"⚡ Zero-boilerplate commandline argument parsing in Rust","archived":true,"fork":false,"pushed_at":"2018-07-24T20:25:49.000Z","size":48,"stargazers_count":361,"open_issues_count":10,"forks_count":7,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-04-14T00:35:03.484Z","etag":null,"topics":["argument-parsing","cli-app","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/clap-rs.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}},"created_at":"2018-03-27T20:31:07.000Z","updated_at":"2024-02-20T19:17:44.000Z","dependencies_parsed_at":"2022-09-26T20:40:36.033Z","dependency_job_id":null,"html_url":"https://github.com/clap-rs/thunder","commit_stats":null,"previous_names":["spacekookie/thunder"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clap-rs%2Fthunder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clap-rs%2Fthunder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clap-rs%2Fthunder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clap-rs%2Fthunder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clap-rs","download_url":"https://codeload.github.com/clap-rs/thunder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246034274,"owners_count":20712857,"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":["argument-parsing","cli-app","rust"],"created_at":"2024-07-31T22:02:38.182Z","updated_at":"2025-03-29T13:30:48.074Z","avatar_url":"https://github.com/clap-rs.png","language":"Rust","readme":"[![](https://img.shields.io/travis/spacekookie/thunder.svg)](https://travis-ci.org/spacekookie/thunder/)\n[![Build status](https://ci.appveyor.com/api/projects/status/clrwni1vork68vq6?svg=true)](https://ci.appveyor.com/project/spacekookie/thunder)\n[![](https://img.shields.io/crates/v/thunder.svg)](https://crates.io/crates/thunder)\n[![Docs.rs](https://docs.rs/thunder/badge.svg)](https://docs.rs/thunder/)\n\n\u003cbr/\u003e\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"logo.svg\" /\u003e\n\u003c/p\u003e\n\u003cbr/\u003e\n\nWrite simple commandline applications in Rust with *zero* boilerplate. Bind Rust functions to CLI functions and options with macros. This crate uses [clap.rs](https://github.com/kbknapp/clap-rs) for the actual argument parsing.\n\n## Example\n\n```rust,norun\n// ... ignore the imports for now ...\n\nstruct MyApp;\n\n/// Describe your application with style ✨\n#[thunderclap]\nimpl MyApp {\n    /// Say hello to someone\n    fn hello(name: \u0026str) {\n        println!(\"Hello {}\", name);\n    }\n}\n\nfn main() {\n    MyApp::start();\n}\n```\n\n**This prints**\n\n```norun\nUSAGE:\n    MyApp [SUBCOMMAND]\n\nFLAGS:\n    -h, --help       Prints help information\n    -V, --version    Prints version information\n\nSUBCOMMANDS:\n    hello    Say hello to someone\n    help     Prints this message or the help of the given subcommand(s)\n```\n\nCheck the documentation for more examples.\n","funding_links":[],"categories":["Rust","rust"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclap-rs%2Fthunder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclap-rs%2Fthunder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclap-rs%2Fthunder/lists"}