equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of the License "Eclipse Public License v1.0" |
5 * under the terms of the License "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
82 |
82 |
83 void Options::DisplayVersion() |
83 void Options::DisplayVersion() |
84 { |
84 { |
85 std::cout << "\nDUMPSIS Version " << MajorVersion << '.' << MinorVersion << std::endl; |
85 std::cout << "\nDUMPSIS Version " << MajorVersion << '.' << MinorVersion << std::endl; |
86 std::cout << "A utility for decompiling Software Installation (SIS) files" << std::endl; |
86 std::cout << "A utility for decompiling Software Installation (SIS) files" << std::endl; |
87 std::cout <<"Copyright (c) Symbian Software Limited 2004-2008. All rights reserved.\n\n" << std::flush; |
87 std::cout <<"Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.\n\n" << std::flush; |
88 } |
88 } |
89 |
89 |
90 Options::Options (int argc, wchar_t** argv) |
90 Options::Options (int argc, wchar_t** argv) |
91 : iVerboseFlag (false), |
91 : iVerboseFlag (false), |
92 iVersion (false), |
92 iVersion (false), |
97 iCreateECI(false) |
97 iCreateECI(false) |
98 { |
98 { |
99 while (--argc) |
99 while (--argc) |
100 { |
100 { |
101 argv++; |
101 argv++; |
102 if ((**argv == '-') || (**argv == '/')) |
102 // WINDOWS ENVIRONMENT : If the underlying platform is WINDOWS then, |
|
103 // cope up with multiple arguments following the '-' or '/'. |
|
104 // |
|
105 // LINUX ENVIRONMENT : If the underlying platform is LINUX then, cope |
|
106 // up with multiple arguments following only the '-'. This restriction |
|
107 // of not dealing with arguments following '/' is due to the fact that, |
|
108 // the absolute paths in case of LINUX start with a '/'. So, this could |
|
109 // be mistaken as an option if we treat anything prefixed by a '/' as |
|
110 // an option. Hence, this facility is being removed once for all and |
|
111 // only '-' can(should) be used for specifying an option. |
|
112 if ( (**argv == '-') |
|
113 #ifndef __TOOLS2_LINUX__ |
|
114 || (**argv == '/') |
|
115 #endif |
|
116 ) |
103 { |
117 { |
104 const wchar_t* optPtr = *argv; |
118 const wchar_t* optPtr = *argv; |
105 |
119 |
106 while (*++optPtr) |
120 while (*++optPtr) |
107 { |
121 { |