Skip to content

Commit

Permalink
bin: Show usage instead of error when providing no arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
freezy committed May 5, 2019
1 parent 9b0a488 commit e6ceab0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/vpt2glb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ import { Table } from '../lib';

const start = Date.now();
if (!argSrc) {
throw new Error('First argument must be the .vpx file to process.');
console.log('USAGE: vpt2glb <source.vpx> [<dest.glb>]\n');
return;
}
if (!/\.vp[xt]$/i.test(argSrc)) {
throw new Error('First argument must be a .vpx or .vpt file.');
Expand Down

0 comments on commit e6ceab0

Please sign in to comment.