mirror of
https://github.com/clap-rs/clap
synced 2024-11-10 06:44:16 +00:00
docs(complete): Add stdout warning to env
This commit is contained in:
parent
e46263a048
commit
3c69aaa312
1 changed files with 5 additions and 0 deletions
5
clap_complete/src/env/mod.rs
vendored
5
clap_complete/src/env/mod.rs
vendored
|
@ -68,6 +68,11 @@ pub use shells::*;
|
|||
/// - Performance: we don't need to general [`clap::Command`] twice or parse arguments
|
||||
/// - Flexibility: there is no concern over it interfering with other CLI logic
|
||||
///
|
||||
/// **Warning:** `stdout` should not be written to before [`CompleteEnv::complete`] has had a
|
||||
/// chance to run.
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// ```rust
|
||||
/// # use clap_complete::CompleteEnv;
|
||||
/// fn cli() -> clap::Command {
|
||||
|
|
Loading…
Reference in a new issue