File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export function createRegisterYargsCommand(
3333 if ( def . type === "command" ) {
3434 const args = def . args ?? { } ;
3535
36- yargs . options ( args ) ;
36+ yargs . options ( args ) . epilogue ( def . metadata ?. epilogue ?? "" ) ;
3737
3838 // Ensure non-array arguments receive a single value
3939 for ( const [ key , opt ] of Object . entries ( args ) ) {
Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ export type Metadata = {
2828 deprecatedMessage ?: string ;
2929 hidden ?: boolean ;
3030 owner : Teams ;
31+ /** Prints something at the bottom of the help */
32+ epilogue ?: string ;
3133} ;
3234
3335export type ArgDefinition = PositionalOptions &
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ export const typesCommand = createCommand({
2121 "📝 Generate types from bindings and module rules in configuration\n" ,
2222 status : "stable" ,
2323 owner : "Workers: Authoring and Testing" ,
24+ epilogue :
25+ "📖 Learn more at https://developers.cloudflare.com/workers/languages/typescript/" ,
2426 } ,
2527 positionalArgs : [ "path" ] ,
2628 args : {
You can’t perform that action at this time.
0 commit comments