@@ -387,7 +387,7 @@ function! s:Augment(items, options) abort
387387 let l: result = deepcopy (a: items )
388388 for l: item in l: result
389389 if l: item .type == # s: sourcing_event_type
390- let l: key = a: options .self ? ' self' : ' self+sourced '
390+ let l: key = a: options .sourced ? ' self+sourced ' : ' self'
391391 elseif l: item .type == # s: other_event_type
392392 let l: key = ' elapsed'
393393 else
@@ -915,7 +915,7 @@ function! s:Options(args) abort
915915 let l: options = {
916916 \ ' help' : 0 ,
917917 \ ' other_events' : g: startuptime_other_events ,
918- \ ' self ' : g: startuptime_self ,
918+ \ ' sourced ' : g: startuptime_sourced ,
919919 \ ' sort' : g: startuptime_sort ,
920920 \ ' sourcing_events' : g: startuptime_sourcing_events ,
921921 \ ' tries' : g: startuptime_tries ,
@@ -931,8 +931,8 @@ function! s:Options(args) abort
931931 break
932932 elseif l: arg == # ' --other-events' || l: arg == # ' --no-other-events'
933933 let l: options .other_events = l: arg == # ' --other-events'
934- elseif l: arg == # ' --self ' || l: arg == # ' --no-self '
935- let l: options .self = l: arg == # ' --self '
934+ elseif l: arg == # ' --sourced ' || l: arg == # ' --no-sourced '
935+ let l: options .sourced = l: arg == # ' --sourced '
936936 elseif l: arg == # ' --sort' || l: arg == # ' --no-sort'
937937 let l: options .sort = l: arg == # ' --sort'
938938 elseif l: arg == # ' --sourcing-events' || l: arg == # ' --no-sourcing-events'
@@ -963,7 +963,7 @@ function! startuptime#CompleteOptions(...) abort
963963 let l: args = [
964964 \ ' --help' ,
965965 \ ' --other-events' , ' --no-other-events' ,
966- \ ' --self ' , ' --no-self ' ,
966+ \ ' --sourced ' , ' --no-sourced ' ,
967967 \ ' --sort' , ' --no-sort' ,
968968 \ ' --sourcing-events' , ' --no-sourcing-events' ,
969969 \ ' --tries' ,
@@ -976,7 +976,7 @@ endfunction
976976" \ [--sort] [--no-sort]
977977" \ [--sourcing-events] [--no-sourcing-events]
978978" \ [--other-events] [--no-other-events]
979- " \ [--self ] [--no-self ]
979+ " \ [--sourced ] [--no-sourced ]
980980" \ [--tries INT]
981981function ! startuptime#StartupTime (mods, ... ) abort
982982 if ! has (' nvim' ) && ! has (' terminal' )
0 commit comments