diff --git a/clap_complete/examples/completion-derive.rs b/clap_complete/examples/completion-derive.rs index 6b90f0a58ad..da3a914bf12 100644 --- a/clap_complete/examples/completion-derive.rs +++ b/clap_complete/examples/completion-derive.rs @@ -2,15 +2,15 @@ //! //! Usage with zsh: //! ```sh -//! cargo run --example value_hints_derive -- --generate=zsh > /usr/local/share/zsh/site-functions/_value_hints_derive +//! cargo run --example completion-derive -- --generate=zsh > /usr/local/share/zsh/site-functions/_completion_derive //! compinit -//! ./target/debug/examples/value_hints_derive -- +//! ./target/debug/examples/completion_derive -- //! ``` //! fish: //! ```sh -//! cargo run --example value_hints_derive -- --generate=fish > value_hints_derive.fish -//! . ./value_hints_derive.fish -//! ./target/debug/examples/value_hints_derive -- +//! cargo run --example completion-derive -- --generate=fish > completion_derive.fish +//! . ./completion_derive.fish +//! ./target/debug/examples/completion_derive -- //! ``` use clap::{Args, Command, CommandFactory, Parser, Subcommand, ValueHint}; use clap_complete::{generate, Generator, Shell}; diff --git a/clap_complete/examples/completion.rs b/clap_complete/examples/completion.rs index 70487b3b91f..4c66610697b 100644 --- a/clap_complete/examples/completion.rs +++ b/clap_complete/examples/completion.rs @@ -2,15 +2,15 @@ //! //! Usage with zsh: //! ```sh -//! cargo run --example value_hints -- --generate=zsh > /usr/local/share/zsh/site-functions/_value_hints +//! cargo run --example completion -- --generate=zsh > /usr/local/share/zsh/site-functions/_completion //! compinit -//! ./target/debug/examples/value_hints -- +//! ./target/debug/examples/completion -- //! ``` //! fish: //! ```sh -//! cargo run --example value_hints -- --generate=fish > value_hints.fish -//! . ./value_hints.fish -//! ./target/debug/examples/value_hints -- +//! cargo run --example completion -- --generate=fish > completion.fish +//! . ./completion.fish +//! ./target/debug/examples/completion -- //! ``` use clap::{value_parser, Arg, Command, ValueHint}; use clap_complete::{generate, Generator, Shell};