Skip to content

Commit b42aed6

Browse files
committed
fix(root): add -g shorthand for --gateway-group flag
The -g shorthand was missing because String() was used instead of StringP(). All e2e tests pass -g for gateway group selection, causing ~50 test failures with 'unknown shorthand flag: g in -g'.
1 parent d5e13c5 commit b42aed6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/cmd/root/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func NewCmd(f *cmd.Factory, cfg *config.FileConfig) *cobra.Command {
4444
// Global persistent flags — these apply to ALL subcommands.
4545
c.PersistentFlags().String("server", "", "API7 EE server URL (overrides context config)")
4646
c.PersistentFlags().String("token", "", "API access token (overrides context config)")
47-
c.PersistentFlags().String("gateway-group", "", "Default gateway group (overrides context config)")
47+
c.PersistentFlags().StringP("gateway-group", "g", "", "Default gateway group (overrides context config)")
4848
c.PersistentFlags().StringP("output", "o", "", "Output format: json, yaml (default: table)")
4949

5050
// Environment variable overrides — applied at init time.

0 commit comments

Comments
 (0)