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

Allow alias warnings to be silenced #507

Closed
wants to merge 1 commit into from

Conversation

shreeve
Copy link

@shreeve shreeve commented Jan 12, 2023

Allow a user to silence the warning that certain methods cannot be aliased. The use case is for tools that use irb and are already aware of the warning, but deem it acceptable and just want to suppress it.

Code would need to do the following to hush these warnings:

IRB::ExtendCommandBundle::HushAliasWarning = true

Allow a user to silence the warning that certain methods cannot be aliased. The use case is for tools that use `irb` and are already aware of the warning, but deem it acceptable and just want to suppress it.

Code would need to do the following to hush these warnings:

```
IRB::ExtendCommandBundle::HushAliasWarning = true
```
@shreeve
Copy link
Author

shreeve commented Jan 12, 2023

An example of these warning is:

irb: warn: can't alias debug from irb_debug.
irb: warn: can't alias delete from irb_delete.
irb: warn: can't alias backtrace from irb_backtrace.

@tompng
Copy link
Member

tompng commented Apr 10, 2024

With #824, method aliasing mechanism and this warning message is removed

@tompng tompng closed this Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants