New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
always print 1.0.0 and exit process #2386
Comments
By default, Yargs adds a e.g. const argv = yargs(hideBin(process.argv)).version(false).argv https://yargs.js.org/docs/#api-reference-versionoption-description-version |
thanks @shadowspawn , it works for me, i recormmand to add this to REAMDME.md, also you depends on your step |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
node: v16.20.2
yargs: "version": "17.7.2"
then run shell
node ci.js --version 21
expect print :
{version:'21'}
The text was updated successfully, but these errors were encountered: