private InputStream createFeedInputStream(CliArguments cliArgs) throws CliArguments.CliArgumentsException, IOException {
        return cliArgs.readFeedFromStandardInput() ? systemIn
                                                   : cliArgs.inputFile().isPresent() ? Files.newInputStream(cliArgs.inputFile().get())
                                                                                     : createDummyInputStream(cliArgs.testPayloadSize().orElse(1024));
    }
Main method for CLI interface

@author bjorncs
vespa-feed-client-cli/src/main/java/ai/vespa/feed/client/impl/CliClient.java