fixed command line args

git-svn-id: svn://svn.code.sf.net/p/processhacker/code@1626 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
wj32
2009-07-22 10:46:59 +00:00
parent 9eb0d23fc4
commit 69ba49033f
+4 -3
View File
@@ -279,13 +279,12 @@ namespace ProcessHacker
private static void ShowCommandLineUsage()
{
PhUtils.ShowInformation(
"Usage: processhacker [-m]\n" +
"Usage:\n" +
"\t-m\tStarts Process Hacker hidden.\n" +
"\t-v\tStarts Process Hacker visible.\n" +
"\t-nokph\tDisables KProcessHacker. Use this if you are encountering BSODs.\n" +
"\t-a\tAggressive mode.\n" +
"\t-o\tShows Options.\n" +
"\t-t n\tShows the specified tab. 0 is Processes, and 1 is Services."
"\t-t n\tShows the specified tab. 0 is Processes, 1 is Services and 2 is Network."
);
}
@@ -538,6 +537,8 @@ namespace ProcessHacker
SelectTab = "Processes";
else if (pArgs["-t"] == "1")
SelectTab = "Services";
else if (pArgs["-t"] == "2")
SelectTab = "Network";
}
return false;