Skip to content

feat: add global options deprecation warnings#410

Closed
ComradeVanti wants to merge 1 commit into
masterfrom
deprec
Closed

feat: add global options deprecation warnings#410
ComradeVanti wants to merge 1 commit into
masterfrom
deprec

Conversation

@ComradeVanti

Copy link
Copy Markdown
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
Copy Markdown
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