Skip to content

Commit

Permalink
docs(derive): Flatten isn't just for update
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Aug 16, 2024
1 parent 5488bcf commit df165a2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clap_builder/src/derive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ pub trait Args: FromArgMatches + Sized {
/// Append to [`Command`] so it can instantiate `Self` via
/// [`FromArgMatches::from_arg_matches_mut`]
///
/// This is used to implement `#[command(flatten)]`
///
/// See also [`CommandFactory::command`].
fn augment_args(cmd: Command) -> Command;
/// Append to [`Command`] so it can instantiate `self` via
Expand All @@ -244,6 +246,8 @@ pub trait Subcommand: FromArgMatches + Sized {
/// Append to [`Command`] so it can instantiate `Self` via
/// [`FromArgMatches::from_arg_matches_mut`]
///
/// This is used to implement `#[command(flatten)]`
///
/// See also [`CommandFactory::command`].
fn augment_subcommands(cmd: Command) -> Command;
/// Append to [`Command`] so it can instantiate `self` via
Expand Down

0 comments on commit df165a2

Please sign in to comment.