MCPcopy Create free account
hub / github.com/bigdra50/unity-cli / _warn_deprecated_console_opts

Function _warn_deprecated_console_opts

unity_cli/cli/commands/console.py:141–149  ·  view source on GitHub ↗
(verbose_legacy: bool, count: int | None, filter_text: str | None)

Source from the content-addressed store, hash-verified

139
140
141def _warn_deprecated_console_opts(verbose_legacy: bool, count: int | None, filter_text: str | None) -> None:
142 deprecations = [
143 (verbose_legacy, "--verbose/-v is deprecated for 'console get'. Use --stacktrace/-s instead."),
144 (count is not None, "--count/-c is deprecated. Use: u console get | head -N"),
145 (filter_text is not None, "--filter/-f is deprecated. Use: u console get | grep PATTERN"),
146 ]
147 for cond, msg in deprecations:
148 if cond:
149 print_warning(msg)
150
151
152def _print_console_entries(entries: list[dict[str, Any]], include_stacktrace: bool) -> None:

Callers 1

console_getFunction · 0.85

Calls 1

print_warningFunction · 0.90

Tested by

no test coverage detected