Changeset 3 for CMT/v1r19/source/cmt_commands.cxx
- Timestamp:
- Mar 2, 2005, 5:39:59 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/v1r19/source/cmt_commands.cxx
r2 r3 422 422 shift (); 423 423 424 cmt.m_action = action_none; 425 424 426 while (argc > 0) 425 427 { … … 457 459 if (parsers.has (reduced_arg)) 458 460 { 461 // This argument corresponds to a known command 462 459 463 int i = (*parsers.find (reduced_arg)); 460 464 … … 462 466 (me.*p) (); 463 467 } 468 else if (cmt.m_action != action_none) 469 { 470 // We have unexpected arguments (not handled by the command handler). This may sign 471 // an unprotected handler implementation. 472 if (!cmt.m_quiet) cerr << "#CMT> warning : unexpected parameter " << reduced_arg << endl; 473 } 464 474 else 465 475 { 476 // This argument does not correspond to a known command. We expect then an action 477 // to be executed with that name 478 466 479 unshift (); 467 480 do_do (); … … 913 926 void ArgParser::do_filter () 914 927 { 915 cmt.m_action = action_filter; 928 if (argc > 0) 929 { 930 fill_arguments (); 931 cmt.m_action = action_filter; 932 } 933 else 934 { 935 if (!cmt.m_quiet) cerr << "#CMT> syntax error : file to filter not specified" << endl; 936 help_action = action_help; 937 cmt.m_action = action_filter; 938 } 916 939 } 917 940 … … 1690 1713 Tag* tag; 1691 1714 CmtSystem::cmt_string_vector words; 1692 1715 1693 1716 // First reset selection of all existing tags 1694 1717 //Tag::clear_all ();
Note: See TracChangeset
for help on using the changeset viewer.