@@ -122,12 +122,14 @@ function runFileFunction(func: (cog: Cog) => void, file: string): void {
122122
123123program . command ( 'load [file]' )
124124 . description ( 'Load and run a cog application.' )
125+ . option ( '-r, --recursive' , '[DEPRECATED] does nothing' )
125126 . action ( ( file : string ) => {
126127 runFileFunction ( bridge . load , file ) ;
127128 } ) ;
128129
129130program . command ( 'reload [file]' )
130131 . description ( 'Stop, unload and load cog again.' )
132+ . option ( '-r, --recursive' , '[DEPRECATED] does nothing' )
131133 . action ( ( file : string ) => {
132134 runFileFunction ( bridge . reload , file ) ;
133135 } ) ;
@@ -168,19 +170,22 @@ function runCogFunction(func: (cogId: string) => void, cogId: string): void {
168170
169171program . command ( 'start <cog_id|path>' )
170172 . description ( 'Start a stopped cog.' )
173+ . option ( '-r, --recursive' , '[DEPRECATED] does nothing' )
171174 . action ( ( cogId : string ) => {
172175 runCogFunction ( bridge . start , cogId ) ;
173176 } ) ;
174177
175178program . command ( 'stop <cog_id|path>' )
176179 . description ( 'Stop a running cog.' )
180+ . option ( '-r, --recursive' , '[DEPRECATED] does nothing' )
177181 . action ( ( cogId : string ) => {
178182 runCogFunction ( bridge . stop , cogId ) ;
179183 } ) ;
180184
181185program . command ( 'unload <cog_id|path>' )
182186 . alias ( 'remove' )
183187 . description ( 'Unload a stopped cog.' )
188+ . option ( '-r, --recursive' , '[DEPRECATED] does nothing' )
184189 . action ( ( cogId : string ) => {
185190 runCogFunction ( bridge . unload , cogId ) ;
186191 } ) ;
0 commit comments