secureswitools/swisistools/source/dumpsis/options.cpp
changeset 26 04d4a7bbc3e0
parent 25 98b66e4fb0be
child 43 9ac6bb1ccd50
equal deleted inserted replaced
25:98b66e4fb0be 26:04d4a7bbc3e0
    59 	DisplayUsage ();
    59 	DisplayUsage ();
    60 	}
    60 	}
    61 
    61 
    62 void Options::DisplayUsage ()
    62 void Options::DisplayUsage ()
    63 	{
    63 	{
    64 	std::cout << "Usage: " << CommandName () << " [-v] [-h] [-x] [-l[-y]][-d directory] filename.sis" << std::endl;
    64 	std::cout << "Usage: " << CommandName () << " [-v] [-h] [-x] [-b] [-c] [-l[-y]][-d directory] filename.sis" << std::endl;
    65 	std::cout << "Where:\t-i\tdisplays verbose output" << std::endl;
    65 	std::cout << "Where:\t-i\tdisplays verbose output" << std::endl;
    66 	std::cout << "\t-v\tdisplays version" << std::endl;
    66 	std::cout << "\t-v\tdisplays version" << std::endl;
    67 	std::cout << "\t-h\tdisplays this message" << std::endl;
    67 	std::cout << "\t-h\tdisplays this message" << std::endl;
    68 	std::cout << "\t-x\textracts the files" << std::endl;
    68 	std::cout << "\t-x\textracts the files" << std::endl;
       
    69 	std::cout << "\t-b\textracts Iby file(s) too" << std::endl;
       
    70 	std::cout << "\t-c\tcompatible mode" << std::endl;
    69 	std::cout << "\t-d\tspecifies where you wish to extract the files to" << std::endl; 
    71 	std::cout << "\t-d\tspecifies where you wish to extract the files to" << std::endl; 
    70 	std::cout << "\t-p\tpauses when finishing" << std::endl;
    72 	std::cout << "\t-p\tpauses when finishing" << std::endl;
    71 	std::cout << "\t-l\tlist the executable against their capablities. " << std::endl;
    73 	std::cout << "\t-l\tlist the executable against their capablities. " << std::endl;
    72 	std::cout << "\t\tAlso verifies capablities with executable header" << std::endl;
    74 	std::cout << "\t\tAlso verifies capablities with executable header" << std::endl;
    73 	std::cout << "\t-y\tlist the executable against their capablities, " << std::endl;
    75 	std::cout << "\t-y\tlist the executable against their capablities, " << std::endl;
    92 	iVersion (false),
    94 	iVersion (false),
    93 	iHelpFlag (false),
    95 	iHelpFlag (false),
    94 	iExtractFilesFlag (false),
    96 	iExtractFilesFlag (false),
    95 	iPauseOnExit (false),
    97 	iPauseOnExit (false),
    96 	iList(false),
    98 	iList(false),
    97 	iCreateECI(false)
    99 	iCreateECI(false),
       
   100 	iCompatibleMode(false),
       
   101 	iCreateIBYFile(false)
    98 	{
   102 	{
    99 	while (--argc)
   103 	while (--argc)
   100 		{
   104 		{
   101 		argv++;
   105 		argv++;
   102 		if ((**argv == '-') || (**argv == '/'))
   106 		if ((**argv == '-') || (**argv == '/'))
   151 						break;
   155 						break;
   152 					case 'y':
   156 					case 'y':
   153 					case 'Y':
   157 					case 'Y':
   154 						iCreateECI = true;
   158 						iCreateECI = true;
   155 						break;
   159 						break;
   156 
   160 					case 'c':
   157 			
   161 					case 'C':
       
   162 						iCompatibleMode = true;
       
   163 						break;
       
   164 					case 'b':
       
   165 					case 'B':
       
   166 						iCreateIBYFile = true;
       
   167 						break;
       
   168 
   158 					default:
   169 					default:
   159 						throw ECmdLineUnknownOption;
   170 						throw ECmdLineUnknownOption;
   160 					}
   171 					}
   161 				}
   172 				}
   162 			}
   173 			}