Skip to content

Commit

Permalink
Merge pull request #4016 from epage/arg-enum
Browse files Browse the repository at this point in the history
docs: Remove references to ArgEnum
  • Loading branch information
epage authored Aug 1, 2022
2 parents 9bd1e2f + 1879ded commit f522b2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/tutorial_derive/04_01_enum.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use clap::{ArgEnum, Parser};
use clap::{Parser, ValueEnum};

#[derive(Parser)]
#[clap(author, version, about, long_about = None)]
Expand All @@ -8,7 +8,7 @@ struct Cli {
mode: Mode,
}

#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, ArgEnum)]
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, ValueEnum)]
enum Mode {
Fast,
Slow,
Expand Down
4 changes: 2 additions & 2 deletions src/_derive/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//! 1. [Terminology](#terminology)
//! 2. [Command Attributes](#command-attributes)
//! 3. [Arg Attributes](#arg-attributes)
//! 4. [Arg Enum Attributes](#arg-enum-attributes)
//! 4. [ValueEnum Attributes](#valueenum-attributes)
//! 5. [Possible Value Attributes](#possible-value-attributes)
//! 3. [Arg Types](#arg-types)
//! 4. [Doc Comments](#doc-comments)
Expand Down Expand Up @@ -241,7 +241,7 @@
//! - Requires field arg to be of type `Vec<T>` and `T` to implement `std::convert::Into<OsString>` or `#[clap(value_enum)]`
//! - `<expr>` must implement `IntoIterator<T>`
//!
//! ### Value Enum Attributes
//! ### ValueEnum Attributes
//!
//! - `rename_all = <string_literal>`: Override default field / variant name case conversion for [`PossibleValue::new`][crate::PossibleValue]
//! - When not present: `"kebab-case"`
Expand Down

0 comments on commit f522b2c

Please sign in to comment.