Permalink
Browse files

-k must be a positive integer, not just non-zero

  • Loading branch information...
1 parent 7c26bcd commit adf0f088e20c3a748ff4844902052b4b285368a5 @falconindy committed Nov 9, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 gobble.go
View
@@ -223,8 +223,8 @@ func init() {
os.Exit(5)
}
- if *keep == 0 {
- fmt.Fprintln(os.Stderr, "error: keep cannot equal 0")
+ if *keep <= 0 {
+ fmt.Fprintln(os.Stderr, "error: keep must be a positive number")
os.Exit(5)
}
}

0 comments on commit adf0f08

Please sign in to comment.