Commit fefbd789 authored by Adam Goins's avatar Adam Goins
Browse files

Modified loadHistory() to print out the last command that was executed.

parent 30bf967b
Loading
Loading
Loading
Loading
+79 −70
Original line number Diff line number Diff line
@@ -504,6 +504,7 @@ namespace Isis {
        int g = lab.groups() - 1;
        if (g >= 0 && lab.group(g).isNamed("UserParameters") ) {
          Isis::PvlGroup &up = lab.group(g);
          QString commandline(p_progName + " ");
          for (int k = 0; k < up.keywords(); k++) {
            QString keyword = up[k].name();

@@ -529,9 +530,15 @@ namespace Isis {
              }
            }

            if (!matchesDefault)
            if (!matchesDefault) {
              PutAsString(keyword, values);
              commandline += keyword + "=";
              foreach(QString val, values) {
                commandline += val + " ";
              }
            }
          }
          std::cout << commandline << std::endl;
          return;
        }

@@ -544,6 +551,8 @@ namespace Isis {
                for (int k = 0; k < up.keywords(); k++) {
                  QString keyword = up[k].name();
                  QString value = up[k][0];
                  std::cout << "Keyword: " << keyword << std::endl;
                  std::cout << "Value: " << value << std::endl;
                  PutAsString(keyword, value);
                }
              }