Changeset 612 for CMT/HEAD/source/cmt_commands.cxx
- Timestamp:
- Apr 26, 2012, 9:51:00 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/HEAD/source/cmt_commands.cxx
r599 r612 1408 1408 1409 1409 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; 1410 1459 } 1411 1460 else if (arg == "all_tags") … … 2473 2522 help_texts.add () = "show action <name> : a formatted action definition"; 2474 2523 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>]"; 2477 2530 help_texts.add () = "show all_tags : all defined tags"; 2478 2531 help_texts.add () = "show applied_patterns : all patterns actually applied"; … … 2494 2547 help_texts.add () = "show macro <name> : a formatted macro definition"; 2495 2548 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>]"; 2498 2551 help_texts.add () = "show manager : package manager"; 2499 2552 help_texts.add () = "show packages [<path>]... : packages reachable from the current context [or <path>s]"; … … 2507 2560 help_texts.add () = "show pwd : filtered current directory"; 2508 2561 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>]"; 2510 2563 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>]"; 2512 2565 help_texts.add () = "show strategies : all strategies (build & version)"; 2513 2566 help_texts.add () = "show tags : all currently active tags"; … … 2577 2630 help.add (action_show_action_names, help_texts[action_show_action_names]); 2578 2631 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]); 2579 2636 help.add (action_show_all_tags, help_texts[action_show_all_tags]); 2580 2637 help.add (action_show_applied_patterns, help_texts[action_show_applied_patterns]);
Note: See TracChangeset
for help on using the changeset viewer.