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 --version flag for printing the version #56

Merged
merged 2 commits into from
May 25, 2022
Merged

Conversation

kentquirk
Copy link
Contributor

Which problem is this PR solving?

  • Adds a --version command line switch to print the released version number and exit.

Short description of the changes

  • Default the version string to "dev", which will be overridden during the build process
  • Pre-parse the command line to see if the version flag was set
  • If so, print and exit
  • Remove the "required" flag from dataset and writekey so that it's possible to get a version without them
  • Evaluate their existence after the version check

@kentquirk kentquirk requested a review from a team May 25, 2022 19:41
@kentquirk kentquirk merged commit b077731 into main May 25, 2022
@kentquirk kentquirk deleted the kent.cmd_version branch May 25, 2022 19:59
@kentquirk kentquirk mentioned this pull request May 25, 2022
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