++




main(): - 5


<< " \n\n"

<< ":\n\t\t"

<< "$command chapter7.doc\n\t\t"

<< "$command -d -l 1024 -o test_7_8 "

<< "chapter7.doc chapter8.doc\n\n";

exit( exit_value );

}

int main( int argc, char* argv[] )

{

bool debug_on = false;

bool ofile_on = false;

bool limit_on = false;

int limit = -1;

string ofile;

vector<string> file_names;

cout << " :\n"

<< "argc: " << argc << endl;

for ( int ix = 1; ix < argc; ++ix )

{

cout << "argv[ " << ix << " ]: "

<< argv[ ix ] << endl;

char *pchar = argv[ ix ];

switch ( pchar[ 0 ] )

{

case '-':

{

cout << " \'-\'\n";

switch( pchar[ 1 ] )

{

case 'd':

cout << " -d: "

<< " \n";

debug_on = true;

break;

case 'v':

cout << " -v: "

<< " \n";

cout << program_name

<< " :: "

<< program_version

<< endl;

return 0;

case 'h':

cout << " -h: "

<< "\n";

// break : usage()

usage();

case 'o':

cout << " -o: \n";

ofile_on = true;

break;

case 'l':

cout << " -l: "