Skip to content
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

[chump] add --query:[version_language|version_chugin_api] command-line args #440

Merged
merged 2 commits into from
May 9, 2024

Conversation

nshaheed
Copy link
Contributor

@nshaheed nshaheed commented May 5, 2024

These are to support querying info about the installed version of chuck from chump.

Examples:

> nshaheed@nick-laptop:~/programming/chuck/src$ ./chuck --query:version_language
1.5.2.5-dev (chai)nshaheed@nick-laptop:~/programming/chuck/src$

> nshaheed@nick-laptop:~/programming/chuck/src$ ./chuck --query:version_chugin_api
10.1nshaheed@nick-laptop:~/programming/chuck/src$

(there's no newline being outputted)

One question I have is: --help and --version set the variables doAbout and doVersion and then actually print things after some instantiation has been done. Is this necessary for --query? How I'm imagining this is that chuck will just spit out the string and then exit so I don't necessarily see a reason to do all the instantiation, but I'm probably missing some context here.

Copy link
Member

@gewang gewang left a comment

Choose a reason for hiding this comment

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

looks good -- to chump and beyond

@gewang gewang merged commit b9b41d6 into main May 9, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants