MCPcopy
hub / github.com/MinishLab/semble / _add_content_args

Function _add_content_args

src/semble/cli.py:45–59  ·  view source on GitHub ↗

Add --content and deprecated --include-text-files to a subparser.

(p: argparse.ArgumentParser)

Source from the content-addressed store, hash-verified

43
44
45def _add_content_args(p: argparse.ArgumentParser) -> None:
46 """Add --content and deprecated --include-text-files to a subparser."""
47 p.add_argument(
48 "--content",
49 nargs="+",
50 default=["code"],
51 choices=[ct.value for ct in ContentType] + ["all"],
52 metavar="TYPE",
53 help="Content types to index (space-separated, e.g. --content code docs). Choices: code, docs, config, all. Default: code.",
54 )
55 p.add_argument(
56 "--include-text-files",
57 action="store_true",
58 help="Deprecated. Use --content all instead.",
59 )
60
61
62def main() -> None:

Callers 2

_mcp_mainFunction · 0.85
_cli_mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected