Functions
main
1
None
▼
Entry point for the ``pounce`` CLI command.
main
1
None
▼
def main(args: list[str] | None = None) -> None
Parameters
| Name | Type | Description |
|---|---|---|
args |
list[str] | None |
Command-line arguments (defaults to sys.argv[1:]). Default:None
|
parse_extensions
1
tuple[str, ...]
▼
Parse a comma-separated extensions string into a normalized tuple.
Ensures eac…
parse_extensions
1
tuple[str, ...]
▼
def parse_extensions(raw: str | None) -> tuple[str, ...]
Parse a comma-separated extensions string into a normalized tuple.
Ensures each extension starts with a dot and strips whitespace. Empty entries are filtered out.
Parameters
| Name | Type | Description |
|---|---|---|
raw |
str | None |
Comma-separated string (e.g. |
Returns
tuple[str, ...]
parse_dirs
1
tuple[str, ...]
▼
Parse a list of directory strings into a cleaned tuple.
Strips whitespace and …
parse_dirs
1
tuple[str, ...]
▼
def parse_dirs(raw: list[str] | None) -> tuple[str, ...]
Parse a list of directory strings into a cleaned tuple.
Strips whitespace and filters empty entries.
Parameters
| Name | Type | Description |
|---|---|---|
raw |
list[str] | None |
List of directory paths (from argparse |
Returns
tuple[str, ...]
_build_parser
0
argparse.ArgumentParser
▼
Build the argument parser for the pounce CLI.
_build_parser
0
argparse.ArgumentParser
▼
def _build_parser() -> argparse.ArgumentParser
Returns
argparse.ArgumentParser