Ignore:
Timestamp:
Apr 26, 2012, 9:51:00 AM (12 years ago)
Author:
rybkin
Message:

See C.L. 487

File:
1 edited

Legend:

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

    r599 r612  
    14081408
    14091409          cmt.m_action = action_show_actions;
     1410        }
     1411      else if (arg == "alias")
     1412        {
     1413          if (argc > 0)
     1414            {
     1415              cmt.m_current_target = fill_one_argument ();
     1416              cmt.m_action = action_show_alias;
     1417            }
     1418          else
     1419            {
     1420              CmtError::set (CmtError::syntax_error, "alias name missing");
     1421              //CmtMessage::error ("syntax: alias name missing");
     1422              help_action = action_help;
     1423              cmt.m_action = action_show_alias;
     1424            }
     1425        }
     1426      else if (arg == "alias_names")
     1427        {
     1428          if (argc > 0)
     1429            {
     1430              fill_one_argument ();
     1431            }
     1432
     1433          cmt.m_action = action_show_alias_names;
     1434        }
     1435      else if (arg == "alias_value")
     1436        {
     1437          cmt.m_quiet = true;
     1438          if (argc > 0)
     1439            {
     1440              cmt.m_current_target = fill_one_argument ();
     1441              cmt.m_action = action_show_alias_value;
     1442            }
     1443          else
     1444            {
     1445              CmtError::set (CmtError::syntax_error, "alias name missing");
     1446              //CmtMessage::error ("syntax: alias name missing");
     1447              help_action = action_help;
     1448              cmt.m_action = action_show_alias_value;
     1449            }
     1450        }
     1451      else if (arg == "aliases")
     1452        {
     1453          if (argc > 0)
     1454            {
     1455              fill_one_argument ();
     1456            }
     1457
     1458          cmt.m_action = action_show_aliases;
    14101459        }
    14111460      else if (arg == "all_tags")
     
    24732522  help_texts.add () =  "show  action <name>     :  a formatted action definition";
    24742523  help_texts.add () =  "show  action_value <name> :  a raw action definition";
    2475   help_texts.add () =  "show  action_names      :  all action names";
    2476   help_texts.add () =  "show  actions           :  all action definitions";
     2524  help_texts.add () =  "show  action_names [<regexp>] :  all action names [matching <regexp>]";
     2525  help_texts.add () =  "show  actions [<regexp>] :  all action definitions [for names matching <regexp>]";
     2526  help_texts.add () =  "show  alias <name>      :  a formatted alias definition";
     2527  help_texts.add () =  "show  alias_value <name> :  a raw alias definition";
     2528  help_texts.add () =  "show  alias_names [<regexp>] :  all alias names [matching <regexp>]";
     2529  help_texts.add () =  "show  aliases [<regexp>] :  all alias definitions [for names matching <regexp>]";
    24772530  help_texts.add () =  "show  all_tags          :  all defined tags";
    24782531  help_texts.add () =  "show  applied_patterns  :  all patterns actually applied";
     
    24942547  help_texts.add () =  "show  macro <name>      :  a formatted macro definition";
    24952548  help_texts.add () =  "show  macro_value <name>  :  a raw macro definition";
    2496   help_texts.add () =  "show  macro_names       :  all macro names";
    2497   help_texts.add () =  "show  macros            :  all macro definitions";
     2549  help_texts.add () =  "show  macro_names [<regexp>] :  all macro names [matching <regexp>]";
     2550  help_texts.add () =  "show  macros [<regexp>] :  all macro definitions [for names matching <regexp>]";
    24982551  help_texts.add () =  "show  manager           :  package manager";
    24992552  help_texts.add () =  "show  packages [<path>]... :  packages reachable from the current context [or <path>s]";
     
    25072560  help_texts.add () =  "show  pwd               :  filtered current directory";
    25082561  help_texts.add () =  "show  set <name>        :  a formatted set definition";
    2509   help_texts.add () =  "show  set_names         :  set names";
     2562  help_texts.add () =  "show  set_names [<regexp>] :  set names [matching <regexp>]";
    25102563  help_texts.add () =  "show  set_value <name>  :  a raw set definition";
    2511   help_texts.add () =  "show  sets              :  set definitions";
     2564  help_texts.add () =  "show  sets [<regexp>]   :  set definitions [for names matching <regexp>]";
    25122565  help_texts.add () =  "show  strategies        :  all strategies (build & version)";
    25132566  help_texts.add () =  "show  tags              :  all currently active tags";
     
    25772630  help.add (action_show_action_names, help_texts[action_show_action_names]);
    25782631  help.add (action_show_actions, help_texts[action_show_actions]);
     2632  help.add (action_show_alias, help_texts[action_show_alias]);
     2633  help.add (action_show_alias_value, help_texts[action_show_alias_value]);
     2634  help.add (action_show_alias_names, help_texts[action_show_alias_names]);
     2635  help.add (action_show_aliases, help_texts[action_show_aliases]);
    25792636  help.add (action_show_all_tags, help_texts[action_show_all_tags]);
    25802637  help.add (action_show_applied_patterns, help_texts[action_show_applied_patterns]);
Note: See TracChangeset for help on using the changeset viewer.