Skip to content

Commit 0e5218e

Browse files
committed
check that limit is maximum 100
1 parent c0177f3 commit 0e5218e

File tree

1 file changed

+2
-2
lines changed
  • internal/cmd/organization/list

1 file changed

+2
-2
lines changed

internal/cmd/organization/list/list.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ func parseInput(p *print.Printer, cmd *cobra.Command, _ []string) (*inputModel,
9292
globalFlags := globalflags.Parse(p, cmd)
9393

9494
limit := flags.FlagToInt64Pointer(p, cmd, limitFlag)
95-
if limit != nil && *limit < 1 {
95+
if limit != nil && (*limit < 1 || *limit > 100) {
9696
return nil, &errors.FlagValidationError{
9797
Flag: limitFlag,
98-
Details: "must be greater than 0",
98+
Details: "must be between 0 and 100",
9999
}
100100
}
101101

0 commit comments

Comments
 (0)