Skip to content

Commit ef487f6

Browse files
committed
Remove history clearing
1 parent fdfa8b8 commit ef487f6

File tree

1 file changed

+1
-5
lines changed
  • lib/msf/ui/console/command_dispatcher

1 file changed

+1
-5
lines changed

lib/msf/ui/console/command_dispatcher/core.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ class Core
8989
"-h" => [ false, "Help banner." ],
9090
"-a" => [ false, "Show all commands in history." ],
9191
"-n" => [ true, "Show the last n commands." ],
92-
"-u" => [ false, "Show only unique commands." ],
93-
"-c" => [ false, "Clear command history." ])
92+
"-u" => [ false, "Show only unique commands." ])
9493

9594
@@irb_opts = Rex::Parser::Arguments.new(
9695
"-h" => [ false, "Help banner." ],
@@ -503,9 +502,6 @@ def cmd_history(*args)
503502
end
504503
when "-u"
505504
uniq = true
506-
when "-c"
507-
Readline::HISTORY.clear
508-
return
509505
when "-h"
510506
cmd_history_help
511507
return false

0 commit comments

Comments
 (0)