Skip to content

Commit a9ff183

Browse files
fix: suppress ignored CLI options
1 parent beac6c8 commit a9ff183

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

zipnumcluster_cc_pyspark.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import argparse
12
import json
23
import logging
34
import os
@@ -24,6 +25,10 @@ class ZipNumClusterCdx(CCFileProcessorSparkJob):
2425

2526
name = 'ZipNumClusterCdx'
2627

28+
input_descr = """Glob pattern of input CDX files, e.g., file:///path/*/*.cdx.gz
29+
(HDFS-compatible filesystems only: hdfs://, s3a://, file://)."""
30+
output_descr = "Ignored but required (can be empty, no output table is produced)."
31+
2732
DATA_URL_PATTERN = re.compile('^(s3|https?|file|hdfs|s3a|s3n):(?://([^/]*))?/(.*)')
2833

2934

@@ -43,6 +48,10 @@ def add_arguments(self, parser):
4348
parser.add_argument("--num_output_partitions", type=int, required=False,
4449
default=300,
4550
help="Number of partitions/shards")
51+
# suppress help for ignored arguments
52+
parser.add_argument("--output_format", help=argparse.SUPPRESS)
53+
parser.add_argument("--output_compression", help=argparse.SUPPRESS)
54+
parser.add_argument("--output_option", help=argparse.SUPPRESS)
4655

4756
@staticmethod
4857
def parse_line(line):

0 commit comments

Comments
 (0)