Unverified Commit 3be233d4 authored by Kaitlyn Lee's avatar Kaitlyn Lee Committed by GitHub
Browse files

Merge pull request #505 from AgoinsUSGS/m04779

parents d9cb71a0 771f2371
Loading
Loading
Loading
Loading
+77 −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;
        }

+31 −28
Original line number Diff line number Diff line
@@ -146,6 +146,9 @@ namespace Isis {
   *                           Added lacking [at]throws documentation to UserInterface.cpp.
   *   @history 2016-04-05 Jesse Mapel - Changed bad histroy file error message to reflect that
   *                           the history file could be for a different application. Fixes #2366
   *   @history 2018-04-20 Adam Goins - Modified loadHistory() to print out the last command
   *                           so that users can see the actual command that the -last arg loads.
   *                           Fixes #4779.
   *
   */