don't run without command
This commit is contained in:
@@ -26,7 +26,7 @@ type args struct {
|
|||||||
|
|
||||||
func Run() {
|
func Run() {
|
||||||
var args args
|
var args args
|
||||||
arg.MustParse(&args)
|
p := arg.MustParse(&args)
|
||||||
|
|
||||||
switch {
|
switch {
|
||||||
case args.Scan != nil:
|
case args.Scan != nil:
|
||||||
@@ -35,5 +35,7 @@ func Run() {
|
|||||||
oplcli.Rename(args.Rename.Files, oplcli.Config{})
|
oplcli.Rename(args.Rename.Files, oplcli.Config{})
|
||||||
case args.Art != nil:
|
case args.Art != nil:
|
||||||
oplcli.DownloadGameArt(args.Art.Files, args.Art.OutputDirectory, oplcli.Config{})
|
oplcli.DownloadGameArt(args.Art.Files, args.Art.OutputDirectory, oplcli.Config{})
|
||||||
|
default:
|
||||||
|
p.Fail("Must specify command")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user