Moved help text into cmd_findpids_help
parent
f13502033a
commit
52f3dfa81b
|
@ -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.
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue