aboutsummaryrefslogtreecommitdiff
path: root/examples/example-outside-type
diff options
context:
space:
mode:
Diffstat (limited to 'examples/example-outside-type')
-rw-r--r--examples/example-outside-type/src/main.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/example-outside-type/src/main.rs b/examples/example-outside-type/src/main.rs
index 3159d19..a04727f 100644
--- a/examples/example-outside-type/src/main.rs
+++ b/examples/example-outside-type/src/main.rs
@@ -90,10 +90,7 @@ fn render_error_io(err: ErrorIo) -> RenderResult {
}
fn main() {
- let mut program = ThisProgram::new();
- program.with_dispatcher(CMDParse);
- program.with_dispatcher(CMDError);
- program.exec_and_exit();
+ ThisProgram::new().exec_and_exit();
}
gen_program!();