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

Add CLI commands to get version #2861

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from
Draft

Conversation

yani
Copy link
Contributor

@yani yani commented Dec 22, 2023

This PR adds the -version and -v commands to make the executable output the KFX version to stdout.

This is useful for third party tools like Unearth, launchers and others.

I also changed the VER_STRING variable in the make file to not have a trailing space when no package suffix is set.

Example:

$ keeperfx.exe -v
KeeperFX 1.0.0.0

Also works with Wine. Although Wine shows some extra stuff that should be fixed elsewhere.

@yani yani marked this pull request as draft March 25, 2024 03:15
@yani yani marked this pull request as ready for review March 25, 2024 03:16
@yani yani marked this pull request as draft April 2, 2024 02:59
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.

None yet

2 participants