Moved help text into cmd_findpids_help
parent
f13502033a
commit
52f3dfa81b
|
@ -288,9 +288,7 @@ class Console::CommandDispatcher::Stdapi::Sys
|
||||||
|
|
||||||
def cmd_findpids(*args)
|
def cmd_findpids(*args)
|
||||||
if args.empty? or args.include? "-h"
|
if args.empty? or args.include? "-h"
|
||||||
print_line "You must supply one or more process name to search for"
|
cmd_findpids_help
|
||||||
print_line "e.g. findpids explorer.exe notepad.exe"
|
|
||||||
print_line "You may also pass Regular Expressions: findpids *.svc.* *.dll.*"
|
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
processes = client.sys.process.get_processes
|
processes = client.sys.process.get_processes
|
||||||
|
@ -318,6 +316,12 @@ class Console::CommandDispatcher::Stdapi::Sys
|
||||||
return true
|
return true
|
||||||
end
|
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.
|
# Reboots the remote computer.
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue