From aa852d9d5fa3d17421082275ca693f89618d4f79 Mon Sep 17 00:00:00 2001 From: "sspitzer%netscape.com" Date: Tue, 28 Mar 2000 08:20:38 +0000 Subject: [PATCH] fix from dunna001@bama.ua.edu for bug #33555. r=sspitzer check all the args for -h and -v, and handle them immediately. git-svn-id: svn://10.0.0.236/trunk@64346 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpfe/bootstrap/nsAppRunner.cpp | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/mozilla/xpfe/bootstrap/nsAppRunner.cpp b/mozilla/xpfe/bootstrap/nsAppRunner.cpp index 4c6801def58..e1f0ab27f2a 100644 --- a/mozilla/xpfe/bootstrap/nsAppRunner.cpp +++ b/mozilla/xpfe/bootstrap/nsAppRunner.cpp @@ -811,26 +811,27 @@ int main(int argc, char* argv[]) #endif nsresult rv; + int i=0; - /* -help and -version should return quick */ - if (argc == 2) { - if ((PL_strcasecmp(argv[1], "-h") == 0) || (PL_strcasecmp(argv[1], "-help") == 0) + /* Handle -help and -version command line arguments. They should return quick, so we deal with them here */ + for (i=1; i