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

ArgsParser: Allow applications to override version string #25534

Conversation

ninadsachania
Copy link
Contributor

No description provided.

@github-actions github-actions bot added the 👀 pr-needs-review PR needs review from a maintainer or community member label Dec 5, 2024
@timschumi
Copy link
Member

What ArgsParser-based utility is in need of this? As far as I know, there are none that would have a separate version number.

@ninadsachania
Copy link
Contributor Author

What ArgsParser-based utility is in need of this? As far as I know, there are none that would have a separate version number.

I think it is useful because not all the utilities' version number should be the same. The author of a particular utility can set a version to indicate how complete it is, is it POSIX compliant, etc.

The default behaviour is still the same. This is opt in.

Also, there was a FIXME. :)

@timschumi
Copy link
Member

I think it is useful because not all the utilities' version number should be the same. The author of a particular utility can set a version to indicate how complete it is, is it POSIX compliant, etc.

I would argue that this is hardly measurable in a version number.

Also, there was a FIXME. :)

A FIXME existing doesn't necessarily mean that it's entirely accurate, or that the suggested change can skip our "don't add dead code" rules. :^)

outln(file, Core::Version::read_long_version_string().release_value_but_fixme_should_propagate_errors());
}

void ArgsParser::set_version(StringView const& version)
Copy link
Member

Choose a reason for hiding this comment

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

Regardless of the other ongoing discussion, it might be worth thinking about if we want some owning string type here instead.

Copy link

stale bot commented Jan 1, 2025

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions!

@stale stale bot added the stale label Jan 1, 2025
Copy link

stale bot commented Jan 9, 2025

This pull request has been closed because it has not had recent activity. Feel free to re-open if you wish to still contribute these changes. Thank you for your contributions!

@stale stale bot closed this Jan 9, 2025
@github-actions github-actions bot removed the 👀 pr-needs-review PR needs review from a maintainer or community member label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants