```java
Optional<Integer> thriftPort = Optional.fromNullable(optionalThriftPort);
return "bin/cassandra-cli " +
    thriftPort.transform(Functions.compose(append("--port "), toStringFunction())).or("") +
    " --file " + fileToRun;
```
:frog: