public Builder setProgramArguments(@Nullable List<String> programArguments) {
      if (programArguments == null) {
        this.programArguments = null;
      } else {
        Preconditions.checkArgument(
            programArguments.stream().allMatch(Objects::nonNull),
            "program arguments list contains null elements");
        this.programArguments = ImmutableList.copyOf(programArguments);
      }
      return this;
    }
Sets the commandline arguments for main.

@param programArguments the list of arguments
@return this
jib-core/src/main/java/com/google/cloud/tools/jib/configuration/ContainerConfiguration.java