diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-05-15 22:36:02 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-05-15 22:36:57 +0800 |
| commit | 31638f3cf6cf8266edc0c8b30f44407229f79637 (patch) | |
| tree | 147c91d6c4ad36c6ff08d339a54501bd810c8936 /mingling_core/src/program/config.rs | |
| parent | 6d61e0c46d33b917438386191e1e11351359abac (diff) | |
Add option to silence panic messages in stdout settings
Diffstat (limited to 'mingling_core/src/program/config.rs')
| -rw-r--r-- | mingling_core/src/program/config.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mingling_core/src/program/config.rs b/mingling_core/src/program/config.rs index 35b9392..c3b1b0e 100644 --- a/mingling_core/src/program/config.rs +++ b/mingling_core/src/program/config.rs @@ -7,6 +7,9 @@ pub struct ProgramStdoutSetting { /// Render results and output pub render_output: bool, + /// Silence panic messages + pub silence_panic: bool, + #[cfg(feature = "clap")] /// Behavior when Clap Dispatcher outputs help information pub clap_help_print_behaviour: ClapHelpPrintBehaviour, @@ -28,6 +31,7 @@ impl Default for ProgramStdoutSetting { ProgramStdoutSetting { error_output: true, render_output: true, + silence_panic: false, #[cfg(feature = "clap")] clap_help_print_behaviour: ClapHelpPrintBehaviour::default(), } |
