Show default limit in agent-task list flag help

Updates the help text for the --limit flag in the agent-task list command to display the default value, improving clarity for users.
This commit is contained in:
Kynan Ware 2025-08-29 17:56:04 -06:00
parent a49994defa
commit 83c597ff53

View file

@ -58,7 +58,7 @@ func NewCmdList(f *cmdutil.Factory, runF func(*ListOptions) error) *cobra.Comman
cmdutil.EnableRepoOverride(cmd, f)
}
cmd.Flags().IntVarP(&opts.Limit, "limit", "L", defaultLimit, "Maximum number of agent tasks to fetch")
cmd.Flags().IntVarP(&opts.Limit, "limit", "L", defaultLimit, fmt.Sprintf("Maximum number of agent tasks to fetch (default %d)", defaultLimit))
opts.CapiClient = func() (*capi.CAPIClient, error) {
cfg, err := opts.Config()