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

feat: add global options deprecation warnings #410

Closed
wants to merge 1 commit into from
Closed

Conversation

ComradeVanti
Copy link
Collaborator

BREAKING CHANGE:

As part of ac31f01 global options which are only relevant to some commands have been moved to those specific commands.

This left some users confused, because this was done without warning or major version change. This change seeks to remedy this, by adding deprecation warnings as well as triggering a major version bump.

BREAKING CHANGE:

As part of ac31f01 global options which are only relevant to some commands have been moved to those specific commands.

This left some users confused, because this was done without warning or major version change. This change seeks to remedy this, by adding deprecation warnings as well as triggering a major version bump.
@ComradeVanti
Copy link
Collaborator Author

It seems like it is not possible to implement this because of a limitation of commander. It can't figure out how to detect whether an option was specified on the global command or on a specific sub-command. we either always get the deprecation warning, or never. I'll abandon this for now.

@ComradeVanti ComradeVanti deleted the deprec branch November 1, 2024 17:47
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.

1 participant