updated args
parent
69bbeeee3b
commit
d96ad46d45
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)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue