🚀 Feature: Add a --version CLI option #704
Labels
good first issue
Good for newcomers, please hop on!
status: accepting prs
Please, send a pull request to resolve this!
type: feature
New enhancement or request
Bug Report Checklist
main
branch of the repository.Overview
Now that
npx template-typescript-node-package
is a supported -even recommended- use case, folks will want to be able to runnpx template-typescript-node-package --version
. Let's have it print out the package version.Vaguely:
Additional Info
Arguments are first parsed here: https://github.com/JoshuaKGoldberg/template-typescript-node-package/blob/0307eba66fe59c3a89a189352fd4797aad37736f/src/bin/index.ts#L34-L40
I think you'll want to add a
--version
arg there with a-v
shorthand. See https://nodejs.org/api/util.html#utilparseargsconfig for examples ofshort
.The text was updated successfully, but these errors were encountered: