File tree 2 files changed +6
-2
lines changed
test/API/functionalities/abbreviation 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -508,6 +508,11 @@ void CommandInterpreter::Initialize() {
508
508
if (cmd_obj_sp) {
509
509
AddAlias (" history" , cmd_obj_sp);
510
510
}
511
+
512
+ cmd_obj_sp = GetCommandSPExact (" help" );
513
+ if (cmd_obj_sp) {
514
+ AddAlias (" h" , cmd_obj_sp);
515
+ }
511
516
}
512
517
513
518
void CommandInterpreter::Clear () {
Original file line number Diff line number Diff line change @@ -20,8 +20,7 @@ def test_command_abbreviations_and_aliases(self):
20
20
self .assertTrue (result .Succeeded ())
21
21
self .assertEqual ("apropos script" , result .GetOutput ())
22
22
23
- # "h" could be "help" or "history", "he" can only be "help".
24
- command_interpreter .ResolveCommand ("he" , result )
23
+ command_interpreter .ResolveCommand ("h" , result )
25
24
self .assertTrue (result .Succeeded ())
26
25
self .assertEqual ("help" , result .GetOutput ())
27
26
You can’t perform that action at this time.
0 commit comments