diff options
Diffstat (limited to 'examples/example-metadata/src')
| -rw-r--r-- | examples/example-metadata/src/main.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/example-metadata/src/main.rs b/examples/example-metadata/src/main.rs index 855241e..5395614 100644 --- a/examples/example-metadata/src/main.rs +++ b/examples/example-metadata/src/main.rs @@ -34,11 +34,7 @@ dispatcher!("desc", CMDDescription => EntryDescription); dispatcher!("nodoc", CMDNoDescription => EntryNoDescription); fn main() { - let mut program = ThisProgram::new(); - program.with_dispatcher(CMDGreet); - program.with_dispatcher(CMDDescription); - program.with_dispatcher(CMDNoDescription); - program.exec_and_exit(); + ThisProgram::new().exec_and_exit(); } /// The metadata type attached to an entry. |
