add required params

This commit is contained in:
Celogeek 2021-12-26 13:55:40 +01:00
parent a3bdfe66c1
commit c05ce69886
Signed by: celogeek
GPG Key ID: E6B7BDCFC446233A

View File

@ -10,7 +10,7 @@ import (
)
type ImagesUploadCommand struct {
Filename string `short:"f" long:"filename" description:"File to upload"`
Filename string `short:"f" long:"filename" description:"File to upload" required:"true"`
NbJobs int `short:"j" long:"jobs" description:"Number of jobs" default:"1"`
CategoryId int `short:"c" long:"category" description:"Category to upload the file"`
}