aboutsummaryrefslogtreecommitdiff
path: root/examples/example-clap-binding/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/example-clap-binding/src/main.rs')
-rw-r--r--examples/example-clap-binding/src/main.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/example-clap-binding/src/main.rs b/examples/example-clap-binding/src/main.rs
index d25c5f3..6ff963b 100644
--- a/examples/example-clap-binding/src/main.rs
+++ b/examples/example-clap-binding/src/main.rs
@@ -60,7 +60,6 @@ fn main() {
// Capture Clap's help information and write to RenderResult
// --------- IMPORTANT ---------
- program.with_dispatcher(CMDGreet);
program.exec_and_exit();
}
@@ -72,7 +71,7 @@ fn main() {
// vvvvvvv vvvvvvvvvvvv vvvvvvv
#[derive(Default, clap::Parser, Grouped)]
#[dispatcher_clap(
- "greet", CMDGreet, // Bind EntryGreet to "greet" command
+ "greet", // Bind EntryGreet to "greet" command
help = true, // Generate clap help for EntryGreet
error = ErrorGreetParsed, // Generate and bind error type for parse failure
// ^^^^^\__ Using `error` intercepts parse failure information into the specified type,