code: @Nonnull
      @Restricted(NoExternalUse.class)
      public String toCommandLineString(@Nonnull SlaveComputer computer) {
          if(disabled) {
              return "";
          }
          
          StringBuilder bldr = new StringBuilder();
          bldr.append("-workDir \"");
          if (workDirPath == null) {
              Slave node = computer.getNode();
              if (node == null) {
                  // It is not possible to launch this node anyway.
                  return "";
              }
              bldr.append(node.getRemoteFS());
          } else {
              bldr.append(workDirPath);
          }
          bldr.append("\"");
          
          if (!DEFAULT_INTERNAL_DIR.equals(internalDir)) {
              bldr.append(" -internalDir \"");
              bldr.append(internalDir);
              bldr.append("\"");
          }
          
          if (failIfWorkDirIsMissing) {
              bldr.append(" -failIfWorkDirIsMissing"); 
          }
                  
          return bldr.toString();
      }
docs: Gets a command line string, which can be passed to agent start command.
  
  @param computer Computer, for which the arguments need to be constructed.
  @return Command line arguments.
  It may be empty if the working directory is disabled or
  if the Computer type is not {@link SlaveComputer}.