DashboardclibuildListCommand injected flags

buildListCommand injected flags

Category: preference
Confidence: 1.00
ID: 01a08c16-76dc-7f0d-81b8-a142088c049f
Project ID: c760f4f9-42b0-4ce0-b36d-6b8c38d770b2
Cross-project: No
Recalled in other projects: 0
Source session: 1UT0KX8W4zH7hqVRY
Created: 2026-09-08 20:42:56
Updated: 2026-09-10 16:11:17

Content

buildListCommand() must always inject --fresh and --cursor unless already defined; freshness uses FRESH_FLAG and applyFreshFlag(). Its first positional passes through interceptSubcommand() to recover plural-alias confusion. Trap: treating the resulting args: string[] as containing only strings looks type-safe, but interception may replace args[0] with undefined. Fix: filter null, undefined, and empty strings before string operations or positional parsing.

Move to: