@@ -353,13 +353,13 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> {
353353 SubCommand :: with_name ( "cache" )
354354 . about ( "Modify the syntax-definition and theme cache" )
355355 . arg (
356- Arg :: with_name ( "init " )
357- . long ( "init " )
358- . short ( "i " )
359- . help ( "Initialize the syntax/theme cache." )
356+ Arg :: with_name ( "build " )
357+ . long ( "build " )
358+ . short ( "b " )
359+ . help ( "Initialize (or update) the syntax/theme cache." )
360360 . long_help (
361- "Initialize the syntax/theme cache by loading from the \
362- source directory (default: the configuration directory).",
361+ "Initialize (or update) the syntax/theme cache by loading from \
362+ the source directory (default: the configuration directory).",
363363 ) ,
364364 )
365365 . arg (
@@ -381,28 +381,28 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> {
381381 )
382382 . group (
383383 ArgGroup :: with_name ( "cache-actions" )
384- . args ( & [ "init " , "clear" , "config-dir" , "cache-dir" ] )
384+ . args ( & [ "build " , "clear" , "config-dir" , "cache-dir" ] )
385385 . required ( arg_group_required) ,
386386 )
387387 . arg (
388388 Arg :: with_name ( "source" )
389389 . long ( "source" )
390- . requires ( "init " )
390+ . requires ( "build " )
391391 . takes_value ( true )
392392 . value_name ( "dir" )
393393 . help ( "Use a different directory to load syntaxes and themes from." ) ,
394394 )
395395 . arg (
396396 Arg :: with_name ( "target" )
397397 . long ( "target" )
398- . requires ( "init " )
398+ . requires ( "build " )
399399 . takes_value ( true )
400400 . value_name ( "dir" )
401401 . help (
402402 "Use a different directory to store the cached syntax and theme set." ,
403403 ) ,
404404 )
405- . arg ( Arg :: with_name ( "blank" ) . long ( "blank" ) . requires ( "init " ) . help (
405+ . arg ( Arg :: with_name ( "blank" ) . long ( "blank" ) . requires ( "build " ) . help (
406406 "Create completely new syntax and theme sets \
407407 (instead of appending to the default sets).",
408408 ) ) ,
0 commit comments