mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-10 11:03:51 +00:00
feat(editor): add --list-primitives focused introspection
Filtered subset of --list-commands: just procedural primitive flags (--gen-mesh-* and --gen-texture-*). Walks the shared kArgRequired registry so it auto-tracks new primitives as they land — no parallel list to maintain. Useful when authoring content packs to discover what's available without scrolling through the full --help dump. Flags: --mesh — show only --gen-mesh-* (default: both) --texture — show only --gen-texture-* (default: both) --json — JSON output with meshCount/textureCount totals Currently surfaces 70 procedural mesh primitives and 62 procedural texture primitives. JSON form is well-suited for piping into sortable / searchable UIs (e.g. content-pack authoring tools).
This commit is contained in:
parent
68db1be97a
commit
ec76077b44
2 changed files with 59 additions and 0 deletions
|
|
@ -789,6 +789,8 @@ void printUsage(const char* argv0) {
|
|||
std::printf(" --pack-wcp <zone> [dst] Pack a zone dir/name into a .wcp archive and exit\n");
|
||||
std::printf(" --unpack-wcp <wcp> [dst] Extract a WCP archive (default dst=custom_zones/) and exit\n");
|
||||
std::printf(" --list-commands Print every recognized --flag, one per line, and exit\n");
|
||||
std::printf(" --list-primitives [--mesh|--texture] [--json]\n");
|
||||
std::printf(" Filtered list of just procedural primitive flags (--gen-mesh-*, --gen-texture-*)\n");
|
||||
std::printf(" --info-cli-stats [--json]\n");
|
||||
std::printf(" Meta-stats on the CLI surface (command count by category prefix)\n");
|
||||
std::printf(" --info-cli-categories\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue