Ignore:
Timestamp:
Mar 2, 2005, 5:39:59 PM (19 years ago)
Author:
arnault
Message:

Various improvements - Introduction of CMTPROJECTPATH - see CL251

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMT/v1r19/source/cmt_commands.cxx

    r2 r3  
    422422  shift ();
    423423
     424  cmt.m_action = action_none;
     425
    424426  while (argc > 0)
    425427    {
     
    457459      if (parsers.has (reduced_arg))
    458460        {
     461          // This argument corresponds to a known command
     462
    459463          int i = (*parsers.find (reduced_arg));
    460464
     
    462466          (me.*p) ();
    463467        }
     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        }
    464474      else
    465475        {
     476          // This argument does not correspond to a known command. We expect then an action
     477          // to be executed with that name
     478
    466479          unshift ();
    467480          do_do ();
     
    913926void ArgParser::do_filter ()
    914927{
    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    }
    916939}
    917940
     
    16901713      Tag* tag;
    16911714      CmtSystem::cmt_string_vector words;
    1692                  
     1715
    16931716      // First reset selection of all existing tags
    16941717      //Tag::clear_all ();
Note: See TracChangeset for help on using the changeset viewer.