code: @Nonnull
      @Restricted(NoExternalUse.class)
      public String getWorkDirOptions(@Nonnull Computer computer) {
          if(!(computer instanceof SlaveComputer)) {
              return "";
          }
          return workDirSettings.toCommandLineString((SlaveComputer)computer);
      }
docs: Gets work directory options as a String.
  
  In public API {@code getWorkDirSettings().toCommandLineArgs(computer)} should be used instead
  @param computer Computer
  @return Command line options for launching with the WorkDir