Use -edit instead of -editor as the editor flag

git-svn-id: svn://10.0.0.236/trunk@36344 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
akkana%netscape.com
1999-06-22 21:41:31 +00:00
parent 556650f105
commit 1cd979f934
2 changed files with 16 additions and 2 deletions

View File

@@ -410,7 +410,7 @@ int main(int argc, char* argv[])
#endif // defined(NS_USING_PROFILES)
rv = cmdLineArgs->GetCmdLineValue("-editor", &cmdResult);
rv = cmdLineArgs->GetCmdLineValue("-edit", &cmdResult);
if (NS_SUCCEEDED(rv))
{
if (cmdResult && (strcmp("1",cmdResult)==0)) {
@@ -419,6 +419,20 @@ int main(int argc, char* argv[])
withArgs = "chrome://editor/content/EditorInitPage.html";
}
}
// Check for -editor -- this may eventually go away
if (nsnull == urlstr)
{
rv = cmdLineArgs->GetCmdLineValue("-editor", &cmdResult);
if (NS_SUCCEEDED(rv))
{
printf("WARNING -- -editor is going away, use -edit instead!\n");
if (cmdResult && (strcmp("1",cmdResult)==0)) {
urlstr = "chrome://editor/content/";
useArgs = PR_TRUE;
withArgs = "chrome://editor/content/EditorInitPage.html";
}
}
}
if (nsnull == urlstr)
{
rv = cmdLineArgs->GetCmdLineValue("-mail", &cmdResult);