updated args
This commit is contained in:
4
main.go
4
main.go
@@ -25,10 +25,12 @@ func readArgs() {
|
||||
inputPath = os.Args[1]
|
||||
outPath = os.Args[2]
|
||||
i, _ := strconv.Atoi(os.Args[3])
|
||||
if i <= 0 {
|
||||
finalWidth = uint(i)
|
||||
if finalWidth <= 0 {
|
||||
fmt.Println("Wrong input for resolution, arguments: <source_dir> <dest_dir> <width_resolution_px>")
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user