summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-09-28 11:26:17 +0300
committerPaul Buetow <paul@buetow.org>2024-09-28 11:26:17 +0300
commit262af22115291863609319b6b0f313873891e15f (patch)
tree4b62032a5f3e8076a14e536df094433017de8ed5 /cmd
parent6865389682c865717bb28f19943c09d0610a7981 (diff)
add Validation
Diffstat (limited to 'cmd')
-rw-r--r--cmd/gos/main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/gos/main.go b/cmd/gos/main.go
index 1248239..2a457d4 100644
--- a/cmd/gos/main.go
+++ b/cmd/gos/main.go
@@ -29,6 +29,10 @@ func main() {
Lookback: time.Duration(*lookback) * time.Hour * 24,
}
+ if err := args.Validate(); err != nil {
+ log.Fatal(err)
+ }
+
if *version {
fmt.Printf("This is Gos version %s; (C) by Paul Buetow\n", versionStr)
fmt.Println("https://codeberg.org/snonux/gos")