INNER CODE UNIT · Python
add_completion_parser
datachain-ai/datachain · src/datachain/cli/parser/__init__.py:554
def add_completion_parser(subparsers, parents):
parser = subparsers.add_parser(
"completion",
parents=parents,
description="Output shell completion script.",
formatter_class=CustomHelpFormatter,
)
parser.add_argument(
"-s",
"--shell",
help="Shell syntax for completions",
default="bash",
choices=shtab.SUPPORTED_SHELLS,
)