in tfx/components/transform/run_executor.py [0:0]
def _parse_flags(argv: List[str]) -> Tuple[argparse.Namespace, List[str]]:
"""Command lines flag parsing."""
parser = argparse_flags.ArgumentParser()
# Arguments in inputs
parser.add_argument(
'--input_schema_path',
type=str,
required=True,
help='Path to input schema')
parser.add_argument(
'--preprocessing_fn_path',
type=str,
default='',
required=True,
help='Path to a preprocessing_fn module')
parser.add_argument(
'--use_tfdv',
type=bool,
default=True,
help='Deprecated and ignored. DO NOT SET.')
parser.add_argument(
'--disable_statistics',
type=bool,
default=False,
help='Whether to disable statistics')
parser.add_argument(
'--analyze_examples',
nargs='+',
default='',
type=str,
help='A space-separated list of paths to examples to be analyzed '
'and transformed')
parser.add_argument(
'--transform_only_examples',
nargs='+',
default='',
type=str,
help='A space-separated list of paths to examples to be transformed only')
parser.add_argument(
'--example_data_format',
type=str,
default=example_gen_pb2.PayloadFormat.Name(
example_gen_pb2.FORMAT_TF_EXAMPLE),
help='Example data format')
# Arguments in outputs
parser.add_argument(
'--transform_fn',
type=str,
required=True,
help='Path that TFTransformOutput will write to')
parser.add_argument(
'--tmp_location',
type=str,
required=True,
help='Path to write temporary files. Executor does not own this '
'directory. User or caller is responsible for cleanup')
parser.add_argument(
'--transformed_examples',
nargs='+',
type=str,
default=[],
help='A space-separated list of paths to write transformed examples')
parser.add_argument(
'--per_set_stats_outputs',
nargs='+',
type=str,
default=[],
help='Paths to statistics output')
parser.add_argument(
'--status_file', type=str, default='', help='Path to write status')
return parser.parse_known_args(argv)