aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/example-exitcode/src/main.rs2
-rw-r--r--examples/full-todolist/src/main.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/example-exitcode/src/main.rs b/examples/example-exitcode/src/main.rs
index c7f731d..f0db05b 100644
--- a/examples/example-exitcode/src/main.rs
+++ b/examples/example-exitcode/src/main.rs
@@ -28,7 +28,7 @@ fn main() {
// --------- IMPORTANT ---------
// Register `ExitCodeSetup` for the program to enable exit codes
- program.with_setup(ExitCodeSetup::default());
+ program.with_setup(ExitCodeSetup);
// --------- IMPORTANT ---------
program.exec_and_exit();
diff --git a/examples/full-todolist/src/main.rs b/examples/full-todolist/src/main.rs
index 9c7bfe8..cac2e13 100644
--- a/examples/full-todolist/src/main.rs
+++ b/examples/full-todolist/src/main.rs
@@ -60,7 +60,7 @@ fn main() {
let mut program = ThisProgram::new();
// Setups
- program.with_setup(ExitCodeSetup::default());
+ program.with_setup(ExitCodeSetup);
program.with_setup(StructuralRendererSetup);
program.with_setup(HelpFlagSetup::new(&arg![help: Flag, 'h']));