We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04aa3bb commit ce5f661Copy full SHA for ce5f661
crates/trigger/src/cli.rs
@@ -256,9 +256,13 @@ fn warn_if_wasm_build_slothful() -> sloth::SlothGuard {
256
}
257
258
fn help_heading<E: TriggerExecutor>() -> Option<&'static str> {
259
- let heading = format!("{} TRIGGER OPTIONS", E::TRIGGER_TYPE.to_uppercase());
260
- let as_str = Box::new(heading).leak();
261
- Some(as_str)
+ if E::TRIGGER_TYPE == help::HelpArgsOnlyTrigger::TRIGGER_TYPE {
+ Some("TRIGGER OPTIONS")
+ } else {
262
+ let heading = format!("{} TRIGGER OPTIONS", E::TRIGGER_TYPE.to_uppercase());
263
+ let as_str = Box::new(heading).leak();
264
+ Some(as_str)
265
+ }
266
267
268
pub mod help {
0 commit comments