getopts
getopts-like option parsing
0.2.24
144M downloads/mo
#629 most downloaded on crates.io
rust-lang/getopts
What this package is like to depend on
Last release 11 months ago
29 Aug 2025
Ships unpredictably
gaps range from 8 days to 5.8 years
Rarely documented
notes for 7 of 30 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
30 releases · first in 2014
1 release in the last 12 months
see the full history below
Release timeline
30 releases · Dec 2014 to Aug 2025Releases
latest 30-
0.2.2429 Aug 2025 -
0.2.2309 Jun 2025Release notes
Open source →Other
- Add caching
- Remove redundant configuration from Cargo.toml
- Bump unicode-width to 0.2.0
- Update the MSRV to 1.66 and edition to 2021
Release notes
Open source →Other
- Add caching
- Remove redundant configuration from Cargo.toml
- Bump unicode-width to 0.2.0
- Update the MSRV to 1.66 and edition to 2021
-
0.2.2209 Jun 2025Release notes
Open source →Other
- Add a check for formatting, apply
cargo fmt - Add a release job
- Document and start testing the MSRV
- Test on more platforms, deny warnings
- Eliminate
html_root_url - Update version number in html_root_url
- Use SPDX license format
- Fix compiler warning in documentation example
- Merge pull request #100 from zdenek-crha/parse_args_end_position
- Merge pull request #103 from zdenek-crha/better_usage_examples
- Add usage examples for methods that add option config
- Update outdated top level documentation
- Add triagebot configuration
- remove deprecated Error::description
- Update documentation of opt_present() and other functions that might panic
- Updated tests for opts_str() and opts_str_first() to check order of processing
- Add opts_present_any() and opts_str_first() interface functions
- Parse options without names vector
Release notes
Open source →Other
- Add a check for formatting, apply
cargo fmt - Add a release job
- Document and start testing the MSRV
- Test on more platforms, deny warnings
- Eliminate
html_root_url - Update version number in html_root_url
- Use SPDX license format
- Fix compiler warning in documentation example
- Merge pull request #100 from zdenek-crha/parse_args_end_position
- Merge pull request #103 from zdenek-crha/better_usage_examples
- Add usage examples for methods that add option config
- Update outdated top level documentation
- Add triagebot configuration
- remove deprecated Error::description
- Update documentation of opt_present() and other functions that might panic
- Updated tests for opts_str() and opts_str_first() to check order of processing
- Add opts_present_any() and opts_str_first() interface functions
- Parse options without names vector
- Add a check for formatting, apply
-
0.2.2119 Aug 2019 -
0.2.2019 Aug 2019Release notes
Open source →What's Changed
- Parse optional short options like gnu getopt by @jridgewell in #82
- Parse options without names vector by @jridgewell in #81
- Update usage format for optional arguments by @jridgewell in #83
- Revert #81, #82, #83 by @alexcrichton in #84
- Fix current build warnings by @alexcrichton in #85
- Update support for being built in rust-lang/rust by @alexcrichton in #86
Full Changelog: v0.2.19...v0.2.20
-
0.2.1902 May 2019 -
0.2.1805 Jul 2018Release notes
Open source →Key Changes
- Adds a
Matches::opt_getmethod that can convert a match to anyT: FromStr. This should be useful for easily getting matched values as numbers - Fixes some long-standing issues around text alignment
- Specifies a minimum version policy
Changes to minimum Rust
The minimum version of Rust required has been set at
1.18.0. We may change this in patch versions, but will always flag it in the release notes here.You can always check the
.travis.ymlfile to see the current minimum supported version.New Dependencies
unicode-widthfor correctly splitting descriptions across multiple lines.
Contributions
- Adds a
-
0.2.1725 Jan 2018Nothing published for this version
-
0.2.1624 Jan 2018Nothing published for this version
-
0.2.1505 Sep 2017Nothing published for this version
-
0.2.1428 Aug 2015Nothing published for this version
-
0.2.1320 Aug 2015Nothing published for this version
-
0.2.1210 Aug 2015Nothing published for this version
-
0.2.1117 May 2015Nothing published for this version
-
0.2.1022 Apr 2015Nothing published for this version
-
0.2.903 Apr 2015Nothing published for this version
-
0.2.802 Apr 2015Nothing published for this version
-
0.2.731 Mar 2015Nothing published for this version
-
0.2.630 Mar 2015Nothing published for this version
-
0.2.525 Mar 2015Nothing published for this version
-
0.2.411 Feb 2015Nothing published for this version
-
0.2.306 Feb 2015Nothing published for this version
-
0.2.206 Feb 2015Nothing published for this version
-
0.2.103 Feb 2015Nothing published for this version
-
0.2.027 Jan 2015Nothing published for this version
-
0.1.409 Jan 2015Nothing published for this version
-
0.1.307 Jan 2015Nothing published for this version
-
0.1.206 Jan 2015Nothing published for this version
-
0.1.105 Jan 2015Nothing published for this version
-
0.1.013 Dec 2014Nothing published for this version