Skip to content

Commit

Permalink
Merge pull request #151 from ckeditor/i/150
Browse files Browse the repository at this point in the history
Feature (generator): The tool will now display its version when used with `-V`/`--version` option. The version will also be displayed on the `-h`/`--help` message. Closes #150.
  • Loading branch information
pomek committed May 12, 2023
2 parents d55b94b + 0f3d0b5 commit 5e00ccb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/ckeditor5-package-generator/bin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,7 @@ new Command( packageJson.name )
.option( '--lang <lang>', 'programming language to use' )
.option( '--plugin-name <name>', 'optional custom plugin name' )
.allowUnknownOption()
.version( packageJson.version )
.addHelpText( 'after', `\nVersion: ${ packageJson.version }` )
.action( ( packageName, options ) => init( packageName, options ) )
.parse( process.argv );

0 comments on commit 5e00ccb

Please sign in to comment.