code: static List<String> path(String name, @Nullable Path path) {
      if (path != null && !path.toString().isEmpty()) {
        return Arrays.asList("--" + name, path.toAbsolutePath().toString());
      }
      return Collections.emptyList();
    }
docs: Produces the flag form of a path object, using {@link Path#toAbsolutePath()} as a string.
  
  @return {@code [--name, "/absolute/path"]} or {@code []} if path is null or not set.