Skip to content

Commit b127f30

Browse files
committed
Change pagination flags default value to zero
1 parent 819e322 commit b127f30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/flags_definers.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,8 @@ func validateFlagIntValue(intSlice []int,
465465
}
466466

467467
func addPaginationFlags(cmd *cobra.Command) {
468-
cmd.PersistentFlags().Int("page", 1, "Page of results to retrieve")
469-
cmd.PersistentFlags().Int("per-page", 1, "The number of results to include per page")
468+
cmd.PersistentFlags().Int("page", 0, "Page of results to retrieve")
469+
cmd.PersistentFlags().Int("per-page", 0, "The number of results to include per page")
470470
}
471471

472472
//

0 commit comments

Comments
 (0)