secureswitools/swisistools/source/interpretsis/commandparser.cpp
branchRCL_3
changeset 19 7ca52d38f8c3
parent 0 ba25891c3a9e
child 23 09e5ea190d07
child 25 98b66e4fb0be
equal deleted inserted replaced
18:3ba40be8e484 19:7ca52d38f8c3
   159 		<< "\tsisfile\t\tThe SIS file to be installed\n"
   159 		<< "\tsisfile\t\tThe SIS file to be installed\n"
   160 		<< "\tdir\t\tThe directory that contains the installing SIS files\n"
   160 		<< "\tdir\t\tThe directory that contains the installing SIS files\n"
   161 		<< "\tdrive\t\tThe drive letter on the device\n"
   161 		<< "\tdrive\t\tThe drive letter on the device\n"
   162 		<< "\tmcard\t\tOption to generate the stub SIS file for the installing package\n"
   162 		<< "\tmcard\t\tOption to generate the stub SIS file for the installing package\n"
   163 		<< "\tmcardnr\t\tOption to generate the non-removable stub SIS file for the installing package\n"
   163 		<< "\tmcardnr\t\tOption to generate the non-removable stub SIS file for the installing package\n"
       
   164 		<< "\tnonremovablepkg\tOption to generate the non-removable SIS file for the installing package\n\n"
   164 		<< "\tmcardalone\tOption to just create a pre-installed package to the media card\n"
   165 		<< "\tmcardalone\tOption to just create a pre-installed package to the media card\n"
   165 		<< "\tmcardalonenr\tOption to generate the non-removable stub SIS file for the installing" << std::endl
   166 		<< "\tmcardalonenr\tOption to generate the non-removable stub SIS file for the installing" << std::endl
   166 		<< "\t\t\tpackage without generating the SISregistry entry\n"
   167 		<< "\t\t\tpackage without generating the SISregistry entry\n"
   167 		<< "\tsucert\t\tTo indicate that the SIS file has been signed with a SU certificate\n\n";
   168 		<< "\tsucert\t\tTo indicate that the SIS file has been signed with a SU certificate\n\n";
   168     }
   169     }
   169 
   170 
   170 void CCommandParser::DisplayVersion()
   171 void CCommandParser::DisplayVersion()
   171 	{
   172 	{
   172 	std::cout << "\nINTERPRETSIS  " << " Version  2.1.2 ." << std::endl;
   173 	std::cout << "\nINTERPRETSIS  " << " Version  2.1.3 ." << std::endl;
   173 	std::cout << "Copyright (c) 2009 Symbian Software Ltd. All rights reserved.\n " << std::endl;
   174 	std::cout << "Copyright (c) 2009 Symbian Software Ltd. All rights reserved.\n " << std::endl;
   174 	}
   175 	}
   175  
   176  
   176 
   177 
   177 CParameterList* CCommandParser::ParseOptions(int argc, const char**argv)
   178 CParameterList* CCommandParser::ParseOptions(int argc, const char**argv)
   541 				sisFileName.iGenerateStub = true;
   542 				sisFileName.iGenerateStub = true;
   542 				}
   543 				}
   543 			else if (versionStr == "+MCARDNR")
   544 			else if (versionStr == "+MCARDNR")
   544 				{
   545 				{
   545 				sisFileName.iGenerateStub = true;
   546 				sisFileName.iGenerateStub = true;
   546 				sisFileName.iNonRemovable = true;
   547 				sisFileName.iReadOnly = true;
   547 				}
   548 				}
   548 			else if (versionStr == "+MCARDALONE")
   549 			else if (versionStr == "+MCARDALONE")
   549 				{
   550 				{
   550 				sisFileName.iGenerateStub = true;
   551 				sisFileName.iGenerateStub = true;
   551 				sisFileName.iNotRegister = true;
   552 				sisFileName.iNotRegister = true;
   552 				}
   553 				}
   553 			else if (versionStr == "+MCARDALONENR")
   554 			else if (versionStr == "+MCARDALONENR")
   554 				{
   555 				{
   555 				sisFileName.iGenerateStub = true;
   556 				sisFileName.iGenerateStub = true;
   556 				sisFileName.iNotRegister = true;
   557 				sisFileName.iNotRegister = true;
       
   558 				sisFileName.iReadOnly = true;
       
   559 				}
       
   560 			else if (versionStr == "+SUCERT")
       
   561 				{
       
   562 				sisFileName.iSUFlag = true;
       
   563 				}
       
   564 			else if (versionStr == "+NONREMOVABLEPKG")
       
   565 				{
   557 				sisFileName.iNonRemovable = true;
   566 				sisFileName.iNonRemovable = true;
   558 				}
       
   559 			else if (versionStr == "+SUCERT")
       
   560 				{
       
   561 				sisFileName.iSUFlag = true;
       
   562 				}
   567 				}
   563 			else
   568 			else
   564 				throw CCommandParser::ECmdLineInvalidSISFileAttribute;
   569 				throw CCommandParser::ECmdLineInvalidSISFileAttribute;
   565 			}
   570 			}
   566 			else
   571 			else