Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/CommandAction/HelpAction.cpp

    rbe21fa rab2ebe  
    6363  std::cout << std::endl;
    6464  // print list of actions or its options
    65   if (params.actionname == "none") {
     65  if (params.actionname.get() == std::string("none")) {
    6666    // print list of all Actions
    6767    std::cout << "Here is a list of all available Actions:" << std::endl;
     
    7575  } else {
    7676    // 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());
    7979      // else give description of Action and its option value if present
    8080      std::cout << instance->help();
     
    8282      std::cout << std::endl;
    8383    } 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() << ".");
    8585      return Action::failure;
    8686    }
Note: See TracChangeset for help on using the changeset viewer.