Skip to content

Commit 9afb098

Browse files
committed
update cmd_edit_help text
1 parent bc02df1 commit 9afb098

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,11 @@ def local_editor
6666
end
6767

6868
def cmd_edit_help
69-
msg = "Edit a local file or the currently active module"
70-
msg = "#{msg} #{local_editor ? "with #{local_editor}" : "(LocalEditor or $VISUAL/$EDITOR should be set first)"}."
7169
print_line "Usage: edit [file/to/edit.rb]"
7270
print_line
73-
print_line msg
74-
print_line "When done editing, you can reload the module with 'reload' or 'rerun'."
71+
print_line "Edit a local file or the currently active module with #{local_editor}"
72+
print_line "If a file path is specified it will automatically be reloaded after editing"
73+
print_line "Otherwise, you can reload the active module with 'reload' or 'rerun'."
7574
print_line
7675
end
7776

0 commit comments

Comments
 (0)