Land #8141, fix execute and kill cmd usage/help

bug/bundler_fix
bwatters-r7 2017-03-22 09:03:41 -05:00
commit 8e829ae951
No known key found for this signature in database
GPG Key ID: ECC0F0A52E65F268
2 changed files with 10 additions and 0 deletions

View File

@ -76,6 +76,7 @@ module Rex
txt << " #{fmtspec.ljust(longest.length)}#{opt}#{val[1]}"
end
txt << ""
txt.join("\n")
end

View File

@ -371,6 +371,15 @@ class Console::CommandDispatcher::Stdapi::Sys
return true
end
#
# help for the kill command
#
def cmd_kill_help
print_line("Usage: kill [pid1 [pid2 [pid3 ...]]] [-s]")
print_line("Terminate one or more processes.")
print_line(" -s Kills the pid associated with the current session.")
end
#
# Kills one or more processes by name.
#