@@ -18,7 +18,7 @@ commander
18
18
. option ( "--template <name>" , "specify the provisioning template" )
19
19
. option ( "--no-template" , "do not use templates, even if specified by global config" )
20
20
. description ( "create new contest project directory" )
21
- . on ( "--help" , function ( ) {
21
+ . on ( "--help" , ( ) => {
22
22
console . log ( "" ) ;
23
23
console . log ( help . task_choices ) ;
24
24
} ) ;
@@ -34,7 +34,7 @@ commander
34
34
. option ( "--template <name>" , "specify the provisioning template" )
35
35
. option ( "--no-template" , "do not use templates, even if specified by global config" )
36
36
. description ( "add new directory for the task in the project directory" )
37
- . on ( "--help" , function ( ) {
37
+ . on ( "--help" , ( ) => {
38
38
console . log ( "" ) ;
39
39
console . log ( help . task_choices ) ;
40
40
} ) ;
@@ -90,7 +90,7 @@ commander
90
90
. command ( "format <format> <contest-id> [task-id]" )
91
91
. action ( commands . format )
92
92
. description ( "format string with contest and/or task information." )
93
- . on ( "--help" , function ( ) {
93
+ . on ( "--help" , ( ) => {
94
94
console . log ( "" ) ;
95
95
console . log ( help . format_strings ) ;
96
96
} ) ;
@@ -114,6 +114,10 @@ commander
114
114
commander
115
115
. command ( "templates" )
116
116
. action ( commands . getTemplateList )
117
- . description ( "show user templates in the config directory" ) ;
117
+ . description ( "show user templates in the config directory" )
118
+ . on ( "--help" , ( ) => {
119
+ console . log ( "" ) ;
120
+ console . log ( help . provisioning_templates ) ;
121
+ } ) ;
118
122
119
123
commander . parse ( process . argv ) ;
0 commit comments