diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-04-13 08:29:55 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-04-13 08:34:15 +0800 |
| commit | b4cef6e601777b8c4b18df118689f8ac310fa835 (patch) | |
| tree | 9924d9cc23dd0f47ac59e67fd8c066a578d7d6f0 /examples/example-completion/src | |
| parent | 5330813f18cd6fbf8aeab868b0a90ec836f08d57 (diff) | |
Diffstat (limited to 'examples/example-completion/src')
| -rw-r--r-- | examples/example-completion/src/main.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/example-completion/src/main.rs b/examples/example-completion/src/main.rs index 86a00ca..141f84e 100644 --- a/examples/example-completion/src/main.rs +++ b/examples/example-completion/src/main.rs @@ -13,11 +13,11 @@ //! ```ignore //! use mingling::build::{build_comp_scripts, build_comp_scripts_with_bin_name}; //! fn main() { -//! // Generate completion scripts for the current program -//! build_comp_scripts().unwrap(); +//! // Generate completion scripts for the current program, using the Cargo package name as the binary filename +//! build_comp_scripts(env!("CARGO_PKG_NAME")).unwrap(); //! -//! // Or specify a specific name -//! // build_comp_scripts_with_bin_name("your_bin").unwrap(); +//! // Or, explicitly specify the binary filename +//! // build_comp_scripts("your_bin").unwrap(); //! } //! ``` //! |
