MCPcopy Create free account
hub / github.com/bshoshany/thread-pool / __init__

Method __init__

scripts/compile_cpp.py:34–56  ·  view source on GitHub ↗

Store the parsed arguments.

(self, parsed_ns: argparse.Namespace)

Source from the content-addressed store, hash-verified

32 """A class to collect the command line arguments with proper type checking."""
33
34 def __init__(self, parsed_ns: argparse.Namespace) -> None:
35 """Store the parsed arguments."""
36 self.files: list[str] = parsed_ns.files
37 self.arch: str = parsed_ns.arch
38 self.as_module: bool = parsed_ns.as_module
39 self.clear_output: bool = parsed_ns.clear_output
40 self.compiler: str | None = parsed_ns.compiler
41 self.define: list[str] = parsed_ns.define if parsed_ns.define is not None else []
42 self.deps: list[str] = parsed_ns.deps if parsed_ns.deps is not None else []
43 self.disable_exceptions: str | None = parsed_ns.disable_exceptions
44 self.flag: list[str] = parsed_ns.flag if parsed_ns.flag is not None else []
45 self.force: bool = parsed_ns.force
46 self.ignore_config: bool = parsed_ns.ignore_config
47 self.include: list[str] = parsed_ns.include if parsed_ns.include is not None else []
48 self.module: list[str] = parsed_ns.module if parsed_ns.module is not None else []
49 self.output: str | None = parsed_ns.output
50 self.pass_args: list[str] = parsed_ns.pass_args if parsed_ns.pass_args is not None else []
51 self.run: bool = parsed_ns.run
52 self.std_module: str | None = parsed_ns.std_module
53 self.std: str = parsed_ns.std
54 self.try_all: bool = parsed_ns.try_all
55 self.type: str = parsed_ns.type
56 self.verbose: bool = parsed_ns.verbose
57
58
59# Parse the command-line arguments.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected