rust \/#rustc 1.98.1 (48a229cea 2026-09-01)Á‰m6GÞ­n6ÇèÆ2-64f5f36fb0927694ÁûÊÆÍRLñ.åSÛAúwjL-df1bddb45adbe94bÁ«ª1Úë• ¢›ºXÝÓrŽ*-1ad4f876c768bda9Á±ò‰<å%Z‰>¸64‡ËV`-2d2ab9fb0fe1def5Á»ÄóG Øg{ë(3íi«F×-06449a08aaab5e30Árustc_std_workspace_coreÁ€û{ù`ä"Ei¥€ÞÏ%G-cb0d4d77988d81b5Áó"Æ)ΉÉðÛÕpEÍ—E-3ec41d3a5a80a4a4Á miniz_oxideÁÐ8°ø‚ðbž Lƨ°J-e44eaef1807e5fc0Áadler2Á9lí©yA6P/D$UBŸ-dca52f01a59c33e7Á hashbrownÁ™¸ÈXó®÷ …ùý{e-143c77bb957d9940Árustc_std_workspace_allocÁð…¨À �¶÷Üúò·_z%í-145a318e0772276cÁ std_detectÁK(ƒ0ì*ãÛ8²D?-f99feda5ce9e492aÁrustc_demangleÁµ%jŽeårVŠÕÓ•-cfd0ab54bb33760eÁcfg_ifÁÍ}λ—©ŒÕž§C•×o-360da4ba13154744Á addr2lineÁ‹c²ŽúY\ÈGÞö÷ö--09755979c57b7e64ÁgimliÁ¢±QÄÍ`ª§DÞåù¬y-9a1fede77fbbf2f0ÁobjectÁö‚F λâËvú.zËí-7ff85ea729a864ffÁmemchrÁž˜]²1<õ¶=U�ý�Où-0e3477fb2664a277Á  ÿŽ—jl‹®¾To–K™G-549498e8b2e4d924Á clap_builderÁk]Œ6aþçØ*d[’,¶-e8f8094ddef08b61ÁanstyleÁÿã!%÷8·ašòvý1-4c019e4345862a26Áclap_lexÁVz³=,º�}Zª¸¼í\¾¿-b733f30ae193d603ÁanstreamÁØG¸›�‰çôî°”oôyˇ-a98462d01da6aca2Á anstyle_parseÁfÎÖO54¤NGa2�OÚ-96e2f6759137828fÁ utf8parseÁ&xFÿ ·RLÒ”aQÚ-6cef86e2756f710eÁ colorchoiceÁ@okÓAYÝDÙ†^-ae9bb2491751696bÁis_terminal_polyfillÁ]ŸE]èÄxØRÆÞáÁNö“-407d487cc0c45818Á anstyle_queryÁ}XŸ�´T0£~¸<· ðV-59650c27b1628560ÁstrsimÁóµ‘áEaþã×}EͳTß-5791654f07c0d1f9Á clap_deriveÁãØ€¿víòꃮՉ-6aaeccf625d37901Á _conceptsÁLÕ!Ó unstable-docÁIJ! _cookbookÁL‰"Ó“ Äæ!_deriveÁ<½"Ó“ Äš"_faqÁ$ï"Ó“ ÄÌ" _featuresÁLž#Ó“ Äû" _tutorialÁLÒ#Ó“ į#ReadmeDoctestsÁtŸ$ï<Š$‰‰É $ÿ ArgsÁ$…!:§�ParserÁ4‹!#ˇ SubcommandÁT“!>ñ‹ ValueEnumÁLŸ!B›… ErrorÁ-ä builderÁ=¹ yerrorÁ-Ê £parserÁ5Ù Ó ArgActionÁMñÌCommandÁ=”¹ ValueHintÁMµ€ArgÁÙ¾ArgGroupÁEÞà ArgMatchesÁU€¨IdÁ¡º" ColorChoiceÁ]ÁÍ"CommandFactoryÁu² 2FromArgMatchesÁu 5commandÁ=ÿ arg_implÁEä"argÁœv value_parserÁeéü ˜ ü××!ü×/, > **Command Line Argument Parser for Rust**Á‡�„‹ Quick Links:ÁüœDA - Derive [tutorial][_derive::_tutorial] and [reference][_derive]Áüá<9 - Builder [tutorial][_tutorial] and [reference][Command]ÁÜž - [Cookbook][_cookbook]Áüº - [CLI Concepts][_concepts]ÁŒÚ - [FAQ][_faq]Áüì@= - [Discussions](https://github.com/clap-rs/clap/discussions)Áü­mj - [CHANGELOG](https://github.com/clap-rs/clap/blob/v4.6.7/CHANGELOG.md) (includes major version migrationÁl› guides)Á©�”­ ## AspirationsÁÀ�üÄ96 - Out of the box, users get a polished CLI experienceÁüþ»¸ - Including common argument behavior, help generation, suggested fixes for users, colored output, [shell completions](https://github.com/clap-rs/clap/tree/master/clap_complete), etcÁüº96 - Flexible enough to port your existing CLI interfaceÁüôJG - However, we won't necessarily streamline support for each use caseÁü¿ " - Reasonable parse performanceÁüâ )& - Resilient maintainership, includingÁüŒ a^ - Willing to break compatibility rather than batching up breaking changes in large releasesÁüî ;8 - Leverage feature flags to keep to one active branchÁüª ZW - Being under [WG-CLI](https://github.com/rust-cli/team/) to increase the bus factorÁü… TQ - We follow semver and will wait about 6-9 months between major breaking changesÁüÚ MJ - We will support the last two minor Rust releases (MSRV, currently 1.74)Á¨ �ü¬ OL While these aspirations can be at odds with fast build times and low binaryÁüü OL size, we will still strive to keep these reasonable for the flexibility youÁ¼Ì get. Check out theÁüäQN [argparse-benchmarks](https://github.com/rust-cli/argparse-benchmarks-rs) forÁü¶.+ CLI parsers optimized for other use cases.Áå�té ## ExampleÁø�<ü RunÁt„ ```consoleÁü“&# $ cargo add clap --features deriveÁ<º ```ÁüÂ41 *(See also [feature flag reference][_features])*Á÷�üû&# Then define your CLI in `main.rs`:Á\¢ ```rustÁü®" # #[cfg(feature = "derive")] {Áø¶üÑ-¶use clap::Parser; /// Simple program to greet a person #[derive(Parser, Debug)] #[command(version, about, long_about = None)] struct Args { /// Name of the person to greet #[arg(short, long)] name: String, /// Number of times to greet #[arg(short, long, default_value_t = 1)] count: u8, } fn main() { let args = Args::parse(); for _ in 0..args.count { println!("Hello {}!", args.name); } } Á<ÿ # }Á<‡Ä#��œ“ And try it out:Áø¼ü§-¼```console $ demo --help A simple to use, efficient, and full-featured Command Line Argument Parser Usage: demo[EXE] [OPTIONS] --name Options: -n, --name Name of the person to greet -c, --count Number of times to greet [default: 1] -h, --help Print help -V, --version Print version $ demo --name Me Hello Me! ``` *(version number and `.exe` extension on windows replaced by placeholders)* ÁÕ�üÙOL See also the derive [tutorial][_derive::_tutorial] and [reference][_derive]Á©�Ä­ ### Related ProjectsÁÆ�ŒÊ Augment clap:ÁüÜgd - [wild](https://crates.io/crates/wild) for supporting wildcards (`*`) on Windows like you do LinuxÁüÄsp - [argfile](https://crates.io/crates/argfile) for loading additional arguments from a file (aka response files)Áü¸\Y - [shadow-rs](https://crates.io/crates/shadow-rs) for generating `Command::long_version`Áü•_\ - [clap_mangen](https://crates.io/crates/clap_mangen) for generating man page source (roff)ÁüõZW - [clap_complete](https://crates.io/crates/clap_complete) for shell completion supportÁüЄ� - [clap-i18n-richformatter](https://crates.io/crates/clap-i18n-richformatter) for i18n support with `clap::error::RichFormatter`ÁÕ�|Ù CLI HelpersÁüé_\ - [clio](https://crates.io/crates/clio) for reading/writing to files specified as argumentsÁüÉIF - [clap-verbosity-flag](https://crates.io/crates/clap-verbosity-flag)Áü“74 - [clap-cargo](https://crates.io/crates/clap-cargo)ÁüËC@ - [colorchoice-clap](https://crates.io/crates/colorchoice-clap)Á��\“ TestingÁüŸIF - [`trycmd`](https://crates.io/crates/trycmd): Bulk snapshot testingÁüéRO - [`snapbox`](https://crates.io/crates/snapbox): Specialized snapshot testingÁü¼ƒ€ - [`assert_cmd`](https://crates.io/crates/assert_cmd) and [`assert_fs`](https://crates.io/crates/assert_fs): Customized testingÁÀ�”Ä Documentation:Áü×SP - [Command-line Apps for Rust](https://rust-cli.github.io/book/index.html) bookÁ«�ü°`Ehttps://raw.githubusercontent.com/clap-rs/clap/master/assets/clap.pngÁl·‰ É §-:§-�ËS#ËS‡ñ}>ñ}‹›¦B›¦… ÄË Úãyòù£‰Ó¡,̼E¹Õ`€ðu¾…�àŸ«¨»¿º"ÏÜÍ"ìü2‹ 5ª3 ÃM Ýb ò€ ˜    d® \ñ ÓɔŠԿ tÚ 4à ÓÉ531/c-ÓÉdb`^-SÓÉ”’�ŽS}ÓÉÄÂÀ¾}¦ÓÉôòð"https://crates.io/crates/shadow-rsÁ clap_mangenÁ$https://crates.io/crates/clap_mangenÁcolorchoice-clapÁ)https://crates.io/crates/colorchoice-clapÁtrycmdÁ CHANGELOGÁ8https://github.com/clap-rs/clap/blob/v4.6.7/CHANGELOG.mdÁshell completionsÁ shadow-rsÁ„A«A#https://crates.io/crates/clap-cargoÁäAùA+https://github.com/clap-rs/clap/discussionsÁ²B§ ÀB https://crates.io/crates/argfileÁ“C„A clap-cargoÁ«CäA*https://rust-cli.github.io/book/index.htmlÁ DiscussionsÁž § ÝC²BargfileÁœD“C,https://crates.io/crates/clap-verbosity-flagÁËD«CCommand-line Apps for RustÁäDFAQÁ“EÝC§ ž ÿ https://crates.io/crates/wildÁ·EœDclap-verbosity-flagÁÍEËD"https://crates.io/crates/assert_fsÁˆFäD CLI ConceptsÁ¬Få “Ež ÿ wildÁÍF·Ehttps://crates.io/crates/clioÁùFÍE assert_fsÁ›GˆFCookbookÁÈ ÌG¬Få feature flag referenceÁÿ öGÍFclioÁ‰HùF#https://crates.io/crates/assert_cmdÁµH›G_derive::_tutorialÁÍH© È ÌGå 2https://github.com/rust-cli/argparse-benchmarks-rsÁîHöG0https://crates.io/crates/clap-i18n-richformatterÁ˜I‰H assert_cmdÁ«IµHtutorialÁÝIÍH© È þ argparse-benchmarksÁ�JîHclap-i18n-richformatterÁÎJ˜I https://crates.io/crates/snapboxÁ�K¼«I¦KÝIþ © !https://github.com/rust-cli/team/ÁÌK�J&https://crates.io/crates/clap_completeÁîKÎJsnapboxÁ”L�K¼¦Kþ WG-CLIÁÜLÌK clap_completeÁŒMîKhttps://crates.io/crates/trycmdÁÁM”L¼¹9https://github.com/clap-rs/clap/tree/master/clap_completeÁæMÜL»AûMŒM§B—NÁMýBÏNæM«A»AûMùA§B—NÀBýBÏN:#>B25…ù öÌí÷±¯²ŠP³¯¿´´ÿ ¦£¬©€#…#ˆ#‹#Î!Ñ!Ö!ÔPŽQ—PŽPÄQýÆþÆÈǵì6¹¢M0³muƒ_;ýg(g]€¬ýÅ— –²]'ÂÐM72á>ÄÏN–h«%÷�ä"Ì =ù\Ãã·=‡óÌö�úË«ÆA›èí­^]xV’—N X\`•Äô$ T ’‘‘ OUX\’Áñ! Q R¿î N ~ �Üßæêîòöúþ� ð('ôü°#ÅŽñ]©œ¹¢M0³muƒÞÁ~ÿwÙÑSVÜ ¹¢M0³muƒÈÃìLy8]µôüÚ#V©œ¹¢M0³muƒˆ_©tÏÖðæ)>):)6)B)”)¹)c)S)©)Ö)„)€ODHT ·Þ«%÷�ä"Ì·=‡óÌö� =ù\Ãã¹¢M0³muƒúË«ÆA›_;ýg(g]€¬ýÅ— –²]'ÂÐM72á>ÄÏN–hèí­^]xV fFqAÿÿMÿ@ÿYÿÿp4+fFqAÿÿMÿ@ÿYÿÿp4+P/root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.6.7/src/lib.rsÁE/root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.6.7ÁP/root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.6.7/src/lib.rsÁ œ›ch[ÄF&Uë¢JŽÒÀ¯$¯$n}"`W0E= An:¼:K#*b<[UNPPR/'5' #..Pht]`[…`J8D JS„Ta'B!!!!!!& µ%_¯ì°ªb j¨n ±]/root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.6.7/src/../examples/demo.rsÁE/root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.6.7Á]/root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.6.7/src/../examples/demo.rsÁ J:¸â(7XÅŽ$EüPs¶¶%.$!- *:Cf†i� ¡PÉ¶Ç ]/root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.6.7/src/../examples/demo.mdÁE/root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.6.7Á]/root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.6.7/src/../examples/demo.mdÁ H0a ëAÿÕrŽürv’¼¼ K) 3="% É™{ò¹«âõKÖCH€ +£,ü-x86_64-unknown-linux-gnuÁ[‹âÅè/˜Z»ùI5›ó*éclapÁ-75a3bd48ec408eddÁ¹¢M0³muƒ§^Ç íD  P      ´È rust-end-file