refactor: script name and defaults
This commit is contained in:
parent
ef744591d2
commit
a8d345eebe
|
@ -6,8 +6,8 @@ import {basename, dirname, extname, join} from 'node:path';
|
|||
import imageSize from 'image-size';
|
||||
|
||||
const tileset = process.argv[2];
|
||||
let w = parseInt(process.argv[3]);
|
||||
let h = parseInt(process.argv[4]);
|
||||
let w = parseInt(process.argv[3] || '0');
|
||||
let h = parseInt(process.argv[4] || '0');
|
||||
|
||||
const {width, height} = imageSize(tileset);
|
||||
|
Loading…
Reference in New Issue
Block a user