Allow specifying --timestamp 0

This commit is contained in:
Philipp Wolfer 2023-12-09 18:56:23 +01:00
parent 2307e6247b
commit e7d596b4e0
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B
2 changed files with 8 additions and 4 deletions

View file

@ -17,6 +17,8 @@ Scotty. If not, see <https://www.gnu.org/licenses/>.
package cmd
import (
"math"
"github.com/spf13/cobra"
"go.uploadedlobster.com/scotty/internal/backends"
"go.uploadedlobster.com/scotty/internal/cli"
@ -58,5 +60,5 @@ func init() {
// Cobra supports local flags which will only run when this command
// is called directly, e.g.:
// beamListensCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
beamListensCmd.Flags().Int64P("timestamp", "t", 0, "Only import listens newer then given Unix timestamp")
beamListensCmd.Flags().Int64P("timestamp", "t", math.MinInt64, "Only import listens newer then given Unix timestamp")
}