From 0caf648487df3fffc3346324a5ae38e0d6ed1e06 Mon Sep 17 00:00:00 2001 From: fang Date: Sun, 4 Jan 2026 23:50:41 -0800 Subject: [PATCH] feat: add --filter-parent as alias for --parent in bd list (bd-3p4u) --- cmd/bd/list.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/bd/list.go b/cmd/bd/list.go index 0bdcf1f3..0127e585 100644 --- a/cmd/bd/list.go +++ b/cmd/bd/list.go @@ -409,8 +409,11 @@ var listCmd = &cobra.Command{ // Gate filtering (bd-7zka.2) includeGates, _ := cmd.Flags().GetBool("include-gates") - // Parent filtering + // Parent filtering (--filter-parent is alias for --parent) parentID, _ := cmd.Flags().GetString("parent") + if parentID == "" { + parentID, _ = cmd.Flags().GetString("filter-parent") + } // Molecule type filtering molTypeStr, _ := cmd.Flags().GetString("mol-type") @@ -1037,6 +1040,7 @@ func init() { // Parent filtering: filter children by parent issue listCmd.Flags().String("parent", "", "Filter by parent issue ID (shows children of specified issue)") + listCmd.Flags().String("filter-parent", "", "Alias for --parent") // Molecule type filtering listCmd.Flags().String("mol-type", "", "Filter by molecule type: swarm, patrol, or work")