Skip to content

Add an option to print only version info#1507

Merged
saghul merged 4 commits into
quickjs-ng:masterfrom
mhogomchungu:master
May 22, 2026
Merged

Add an option to print only version info#1507
saghul merged 4 commits into
quickjs-ng:masterfrom
mhogomchungu:master

Conversation

@mhogomchungu
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread qjs.c
Comment thread qjs.c Outdated
help(0);
}
if (opt == 'v' || !strcmp(longopt, "version")) {
printf("QuickJS-ng version %s\n",JS_GetVersion());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just print the version, no extra text, it will make it much easier for scripts that want to parse it...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@saghul saghul merged commit 3adc8c9 into quickjs-ng:master May 22, 2026
124 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants