-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Repurpose the help command to display the help message
See #787 for more details.
- Loading branch information
Showing
2 changed files
with
14 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,12 @@ | ||
# frozen_string_literal: true | ||
|
||
require_relative "show_doc" | ||
require_relative "show_cmds" | ||
|
||
module IRB | ||
module ExtendCommand | ||
class Help < ShowDoc | ||
category "Context" | ||
description "[DEPRECATED] Enter the mode to look up RI documents." | ||
|
||
DEPRECATION_MESSAGE = <<~MSG | ||
[Deprecation] The `help` command will be repurposed to display command help in the future. | ||
For RI document lookup, please use the `show_doc` command instead. | ||
For command help, please use `show_cmds` for now. | ||
MSG | ||
|
||
def execute(*names) | ||
warn DEPRECATION_MESSAGE | ||
super | ||
end | ||
class Help < ShowCmds | ||
category "IRB" | ||
description "List all available commands and their description." | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters