- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/CommandAction/HelpAction.cpp
rbe21fa rab2ebe 63 63 std::cout << std::endl; 64 64 // print list of actions or its options 65 if (params.actionname == "none") {65 if (params.actionname.get() == std::string("none")) { 66 66 // print list of all Actions 67 67 std::cout << "Here is a list of all available Actions:" << std::endl; … … 75 75 } else { 76 76 // retrieve command from Registry and print its help 77 if (ActionRegistry::getInstance().isActionPresentByName(params.actionname )) {78 const Action *instance = ActionRegistry::getInstance().getActionByName(params.actionname );77 if (ActionRegistry::getInstance().isActionPresentByName(params.actionname.get())) { 78 const Action *instance = ActionRegistry::getInstance().getActionByName(params.actionname.get()); 79 79 // else give description of Action and its option value if present 80 80 std::cout << instance->help(); … … 82 82 std::cout << std::endl; 83 83 } else { 84 ELOG(1, "No action is known by the name " << params.actionname << ".");84 ELOG(1, "No action is known by the name " << params.actionname.get() << "."); 85 85 return Action::failure; 86 86 }
Note:
See TracChangeset
for help on using the changeset viewer.