public static void loadCmdLineFiles() {
    { Cons unprocessedargs = Stella.unprocessedCommandLineArguments();
      String file = null;

      if (unprocessedargs != null) {
        unprocessedargs = Cons.copyConsList(Stella.unprocessedCommandLineArguments()).reverse();
        { StringWrapper arg = null;
          Cons iter000 = unprocessedargs;
          int i = Stella.NULL_INTEGER;
          int iter001 = 0;

          loop000 : for (;!(iter000 == Stella.NIL); iter000 = iter000.rest, iter001 = iter001 + 1) {
            arg = ((StringWrapper)(iter000.value));
            i = iter001;
            if (Stella.startsWithP(arg.wrapperValue, "-", Stella.NULL_INTEGER)) {
              if (i == 0) {
                unprocessedargs = Stella.NIL;
              }
              else {
                unprocessedargs.nthRestSetter(Stella.NIL, i);
              }
              break loop000;
            }
          }
        }
        Logic.plLog(Logic.KWD_LOW, Cons.cons(StringWrapper.wrapString("Loading command line PowerLoom files..."), Stella.NIL));
        Stella.bumpLogIndent();
        { StringWrapper arg = null;
          Cons iter002 = unprocessedargs.reverse();

          for (;!(iter002 == Stella.NIL); iter002 = iter002.rest) {
            arg = ((StringWrapper)(iter002.value));
            { boolean foundP000 = false;

              { Stella_Object ext = null;
                Cons iter003 = Logic.$POWERLOOM_KB_FILE_EXTENSIONS$;

                loop002 : for (;!(iter003 == Stella.NIL); iter003 = iter003.rest) {
                  ext = iter003.value;
                  if (Stella.endsWithP(arg.wrapperValue, ((StringWrapper)(ext)).wrapperValue, Stella.NULL_INTEGER)) {
                    foundP000 = true;
                    break loop002;
                  }
                }
              }
              if (foundP000) {
                {
                  { String temp000 = Stella.findFileInLoadPath(arg.wrapperValue, null);

                    file = ((temp000 != null) ? temp000 : arg.wrapperValue);
                  }
                  Logic.plLog(Logic.KWD_MEDIUM, Cons.cons(StringWrapper.wrapString("Loading file "), Cons.cons(StringWrapper.wrapString(file), Stella.NIL)));
                  Logic.load(file, Stella.NIL);
                }
              }
              else {
                if (Stella.probeFileP(Stella.fileNameAsDirectory(arg.wrapperValue))) {
                  Logic.loadDirectory(arg.wrapperValue);
                }
              }
            }
          }
        }
        Stella.unbumpLogIndent();
      }
    }
  }