@@ -9,7 +9,7 @@ use std::path::PathBuf;
99use std:: { future:: Future , sync:: Arc } ;
1010
1111use anyhow:: { Context , Result } ;
12- use clap:: { Args , IntoApp , Parser } ;
12+ use clap:: { Args , CommandFactory , Parser } ;
1313use spin_app:: App ;
1414use spin_common:: sloth;
1515use spin_common:: ui:: quoted_path;
@@ -41,6 +41,7 @@ pub const SPIN_WORKING_DIR: &str = "SPIN_WORKING_DIR";
4141/// A command that runs a TriggerExecutor.
4242#[ derive( Parser , Debug ) ]
4343#[ clap(
44+ styles = spin_common:: cli:: CLAP_STYLES ,
4445 override_usage = "spin [COMMAND] [OPTIONS]" ,
4546 next_help_heading = help_heading:: <T , B :: Factors >( )
4647) ]
@@ -68,7 +69,6 @@ pub struct FactorsTriggerCommand<T: Trigger<B::Factors>, B: RuntimeFactorsBuilde
6869 long = "disable-cache" ,
6970 env = DISABLE_WASMTIME_CACHE ,
7071 conflicts_with = WASMTIME_CACHE_FILE ,
71- takes_value = false ,
7272 ) ]
7373 pub disable_cache : bool ,
7474
@@ -287,9 +287,9 @@ fn warn_if_wasm_build_slothful() -> sloth::SlothGuard {
287287
288288fn help_heading < T : Trigger < F > , F : RuntimeFactors > ( ) -> Option < & ' static str > {
289289 if T :: TYPE == <help:: HelpArgsOnlyTrigger as Trigger < F > >:: TYPE {
290- Some ( "TRIGGER OPTIONS " )
290+ Some ( "Trigger Options " )
291291 } else {
292- let heading = format ! ( "{} TRIGGER OPTIONS " , T :: TYPE . to_uppercase( ) ) ;
292+ let heading = format ! ( "{} Trigger Options " , T :: TYPE . to_uppercase( ) ) ;
293293 let as_str = Box :: new ( heading) . leak ( ) ;
294294 Some ( as_str)
295295 }
0 commit comments