I'm trying to run PubSubToBigQuery.java locally using https://github.com/GoogleCloudPlatform/DataflowTemplates with direct runner. However I'm getting the error message
Exception in thread "main" java.lang.IllegalArgumentException: Class interface com.google.cloud.teleport.templates.PubSubToBigQuery$Options missing a property named 'gcs-location'.
at org.apache.beam.sdk.options.PipelineOptionsFactory.parseObjects(PipelineOptionsFactory.java:1518)
at org.apache.beam.sdk.options.PipelineOptionsFactory.access$400(PipelineOptionsFactory.java:111)
at org.apache.beam.sdk.options.PipelineOptionsFactory$Builder.as(PipelineOptionsFactory.java:294)
at com.google.cloud.teleport.templates.PubSubToBigQuery.main(PubSubToBigQuery.java:165)
But I've already passed --gcs-location=gs://xxx-templates/dataflow/pipelines/pubsub-to-bigquery during run.
It is at this line the error is thrown. https://github.com/GoogleCloudPlatform/DataflowTemplates/blob/master/src/main/java/com/google/cloud/teleport/templates/PubSubToBigQuery.java#L176