INNER CODE UNIT · Python
add_config_args
KennethJAllen/proper-pixel-art · proper_pixel_art/cli.py:120
def add_config_args(parser: argparse.ArgumentParser) -> argparse.ArgumentParser:
"""Add the ``--config`` / ``--intermediate-dir`` arguments shared by both CLIs."""
parser.add_argument(
"--config",
dest="config",
type=Path,
default=None,
help="Path to a YAML config file of pixelation parameters. Any flags passed explicitly override values in the file.",
)
parser.add_argument(
"--intermediate-dir",
dest="intermediate_dir",
type=Path,
default=None,
help="Directory to save images visualizing intermediate algorithm steps (created if needed).",
)
return parser