aboutsummaryrefslogtreecommitdiff
path: root/examples/example-enum-tag/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/example-enum-tag/src/main.rs')
-rw-r--r--examples/example-enum-tag/src/main.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/example-enum-tag/src/main.rs b/examples/example-enum-tag/src/main.rs
index b57511d..884bc1d 100644
--- a/examples/example-enum-tag/src/main.rs
+++ b/examples/example-enum-tag/src/main.rs
@@ -100,8 +100,5 @@ fn complete_language_selection(_: &ShellContext) -> Suggest {
gen_program!();
fn main() {
- let mut program = ThisProgram::new();
- program.with_dispatcher(CMDCompletion);
- program.with_dispatcher(CMDLanguageSelection);
- program.exec_and_exit();
+ ThisProgram::new().exec_and_exit();
}