Moved help text into cmd_findpids_help

unstable
David Maloney 2012-09-12 08:26:31 -05:00 committed by corelanc0d3r
parent f13502033a
commit 52f3dfa81b
1 changed files with 7 additions and 3 deletions

View File

@ -288,9 +288,7 @@ class Console::CommandDispatcher::Stdapi::Sys
def cmd_findpids(*args)
if args.empty? or args.include? "-h"
print_line "You must supply one or more process name to search for"
print_line "e.g. findpids explorer.exe notepad.exe"
print_line "You may also pass Regular Expressions: findpids *.svc.* *.dll.*"
cmd_findpids_help
return true
end
processes = client.sys.process.get_processes
@ -318,6 +316,12 @@ class Console::CommandDispatcher::Stdapi::Sys
return true
end
def cmd_findpids_help
print_line "You must supply one or more process name to search for"
print_line "e.g. findpids explorer.exe notepad.exe"
print_line "You may also pass Regular Expressions: findpids *.svc.* *.dll.*"
end
#
# Reboots the remote computer.
#