---
title: "clap_complete 4.0.0 Breaking Changes on crates.io"
description: "What each clap_complete release removed, renamed or changed: 38 breaking changes in 3 versions on crates.io, each with its source."
canonical_url: https://since.dev/packages/crates/clap_complete
last_updated: 2026-12-04
---

# clap_complete breaking changes

clap_complete 4.0.0 (September 28, 2022) is its newest release with breaking changes, 20 of them. The first: Removed Arg.max_values. Every breaking API change we have recorded in clap_complete on crates.io: 38 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.6.12`, released November 16, 2026. [Source repository](https://github.com/clap-rs/clap)

Packages on crates.io run on Rust. [Rust end of life dates](https://since.dev/calendar/rust.md).

- From [4.0.0-rc.1](#v-4-0-0-rc-1) to [4.0.0](#v-4-0-0): 21 breaking changes in 2 versions.

## clap_complete 4.0.0 breaking changes

clap_complete 4.0.0, released September 28, 2022: 20 breaking changes.

- **Removed** `Arg.max_values`  

Replace max_values with num_args(1..=M), which counts values per occurrence. [github.com](https://github.com/clap-rs/clap/blob/v4.0.0/CHANGELOG.md)
- **Removed** `Arg.min_values`  

Replace min_values with num_args(N..), which counts values per occurrence. [github.com](https://github.com/clap-rs/clap/blob/v4.0.0/CHANGELOG.md)
- **Removed** `Arg.require_value_delimiter`  

Use Arg::value_delimiter, or a custom TypedValueParser, instead. [github.com](https://github.com/clap-rs/clap/blob/v4.0.0/CHANGELOG.md)
- **Removed** `Arg.takes_value`  

Replace takes_value(true) with num_args(1) and takes_value(false) with num_args(0). [github.com](https://github.com/clap-rs/clap/blob/v4.0.0/CHANGELOG.md)
- **Removed** `clap_complete::Shell::possible_values`  

Use arg.value_parser instead. [crates.io](https://crates.io/crates/clap%5Fcomplete/4.0.0)
- **Removed** `clap_complete::shells::Shell::possible_values`  

Use arg.value_parser instead. [crates.io](https://crates.io/crates/clap%5Fcomplete/4.0.0)
- **Removed** `ErrorKind.EmptyValue`  

Match ErrorKind::InvalidValue instead of EmptyValue. [github.com](https://github.com/clap-rs/clap/blob/v4.0.0/CHANGELOG.md)
- **Removed** `ErrorKind.UnrecognizedSubcommand`  

Match ErrorKind::InvalidSubcommand instead. [github.com](https://github.com/clap-rs/clap/blob/v4.0.0/CHANGELOG.md)
- **Behavior changed** `Arg.long`  

Arg::long values must no longer start with dashes. [github.com](https://github.com/clap-rs/clap/blob/v4.0.0/CHANGELOG.md)
- **Behavior changed** `Arg.value_terminator`  

Arg::value_terminator values must now be given as their own argument rather than inside a delimited list. [github.com](https://github.com/clap-rs/clap/blob/v4.0.0/CHANGELOG.md)
- **Behavior changed** `Command.mut_arg`  

To customize help or version, disable them with disable_help_flag or disable_version_flag and provide your own. [github.com](https://github.com/clap-rs/clap/blob/v4.0.0/CHANGELOG.md)
- **Default changed** `Arg.action`  

An Arg's default action is now ArgAction::Set instead of counting occurrences; set the action explicitly where counting was relied on. [github.com](https://github.com/clap-rs/clap/blob/v4.0.0/CHANGELOG.md)
- **Configuration changed**  

Help wrapping only happens if the wrap_help feature is enabled; otherwise hard-code line breaks. [github.com](https://github.com/clap-rs/clap/blob/v4.0.0/CHANGELOG.md)
- **Configuration changed**  

Line wrapping of help output now requires the wrap_help feature; otherwise put newlines in manually. [github.com](https://github.com/clap-rs/clap/commit/3c9bca5ead286fb250fad210aa024b4a285d6dd4)
- **Configuration changed**  

Projects using default-features = false must re-add the help, usage and error-context feature flags. [github.com](https://github.com/clap-rs/clap/blob/v4.0.0/CHANGELOG.md)
- **Signature changed** `clap_complete::dynamic::bash::CompleteCommand::try_complete`  

Was fn try_complete(&self, cmd: &mut clap::Command) -> clap::Result<()>; now fn try_complete(&self, cmd: &mut clap::Command) -> clap::error::Result<()>. [crates.io](https://crates.io/crates/clap%5Fcomplete/4.0.0)
- **Signature changed** `clap_complete::generator::utils::find_subcommand_with_path`  

Was fn find_subcommand_with_path<'help, 'cmd>(p: &'cmd Command<'help>, path: Vec<&str>) -> &'cmd Command<'help>; now fn find_subcommand_with_path<'cmd>(p: &'cmd Command, path: Vec<&str>) -> &'cmd Command. [crates.io](https://crates.io/crates/clap%5Fcomplete/4.0.0)
- **Signature changed** `clap_complete::generator::utils::flags`  

Was fn flags<'help>(p: &Command<'help>) -> Vec\<Arg<'help>>; now fn flags(p: &Command) -> Vec\<Arg>. [crates.io](https://crates.io/crates/clap%5Fcomplete/4.0.0)
- **Signature changed** `clap_complete::generator::utils::possible_values`  

Was fn possible_values<'help>(a: &Arg<'help>) -> Option\<Vec\<clap::PossibleValue<'help>>>; now fn possible_values(a: &Arg) -> Option\<Vec\<clap::builder::PossibleValue>>. [crates.io](https://crates.io/crates/clap%5Fcomplete/4.0.0)
- **Signature changed** `Command.render_usage`  

Command::render_usage returns StyledStr instead of its previous type. [github.com](https://github.com/clap-rs/clap/blob/v4.0.0/CHANGELOG.md)

## clap_complete 4.0.0-rc.3 breaking changes

clap_complete 4.0.0-rc.3, released September 28, 2022: 1 breaking change.

- **Behavior changed** `ArgAction.Set`  

Repeated uses now error unless args_override_self(true) is set to allow overriding. [github.com](https://github.com/clap-rs/clap/releases/tag/v4.0.0-rc.3)

## clap_complete 4.0.0-rc.1 breaking changes

clap_complete 4.0.0-rc.1, released September 28, 2022: 17 breaking changes.

- **Removed** `AppSettings`  

Use the getter and setter methods on Command and Arg instead. [github.com](https://github.com/clap-rs/clap/releases/tag/v4.0.0-rc.1)
- **Removed** `Arg.require_value_delimiter`  

Use Arg::value_delimiter, or a custom TypedValueParser, instead. [github.com](https://github.com/clap-rs/clap/releases/tag/v4.0.0-rc.1)
- **Removed** `Command`  

Code that compares Command values for equality will no longer compile. [github.com](https://github.com/clap-rs/clap/releases/tag/v4.0.0-rc.1)
- **Removed** `parse`  

Derived arguments now use value_parser by default; the parse attribute is no longer supported. [github.com](https://github.com/clap-rs/clap/releases/tag/v4.0.0-rc.1)
- **Renamed** `Arg.max_values`  

Replace Arg::max_values with Arg::num_args(1..=M), which applies per occurrence instead of across all occurrences. [github.com](https://github.com/clap-rs/clap/releases/tag/v4.0.0-rc.1)
- **Renamed** `Arg.min_values`  

Replace Arg::min_values with Arg::num_args(N..), which applies per occurrence instead of across all occurrences. [github.com](https://github.com/clap-rs/clap/releases/tag/v4.0.0-rc.1)
- **Renamed** `Arg.number_of_values`  

Use Arg::num_args instead, which counts raw arguments per occurrence rather than averaging across occurrences. [github.com](https://github.com/clap-rs/clap/releases/tag/v4.0.0-rc.1)
- **Renamed** `ErrorKind.EmptyValue`  

Match on ErrorKind::InvalidValue instead. [github.com](https://github.com/clap-rs/clap/releases/tag/v4.0.0-rc.1)
- **Renamed** `ErrorKind.UnrecognizedSubcommand`  

Match on ErrorKind::InvalidSubcommand instead. [github.com](https://github.com/clap-rs/clap/releases/tag/v4.0.0-rc.1)
- **Behavior changed**  

The crate now requires Rust 1.60.0 or later to build. [github.com](https://github.com/clap-rs/clap/releases/tag/v4.0.0-rc.1)

And 7 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Related packages

- [clap](https://since.dev/packages/crates/clap.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
