From 2c2a193b521227eaf8cc94c7262a64d3bcc90053 Mon Sep 17 00:00:00 2001 From: Niklas Kapelle Date: Wed, 7 Jan 2026 00:02:40 +0100 Subject: [PATCH] don't run without command --- cmd/oplcli.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/oplcli.go b/cmd/oplcli.go index 3e74fcb..6ce3397 100644 --- a/cmd/oplcli.go +++ b/cmd/oplcli.go @@ -26,7 +26,7 @@ type args struct { func Run() { var args args - arg.MustParse(&args) + p := arg.MustParse(&args) switch { case args.Scan != nil: @@ -35,5 +35,7 @@ func Run() { oplcli.Rename(args.Rename.Files, oplcli.Config{}) case args.Art != nil: oplcli.DownloadGameArt(args.Art.Files, args.Art.OutputDirectory, oplcli.Config{}) + default: + p.Fail("Must specify command") } }