Skip to content

Commit e8d563c

Browse files
authored
Fix invalid radix in cli (#1446)
1 parent bc5c4ea commit e8d563c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/svgo/coa.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ async function action(args, opts, command) {
7272
var config = {};
7373

7474
if (opts.precision != null) {
75-
const number = Number.parseInt(opts.precision, 0);
75+
const number = Number.parseInt(opts.precision, 10);
7676
if (Number.isNaN(number)) {
7777
console.error(
7878
"error: option '-p, --precision' argument must be an integer number"
@@ -97,7 +97,7 @@ async function action(args, opts, command) {
9797
}
9898

9999
if (opts.indent != null) {
100-
const number = Number.parseInt(opts.indent, 0);
100+
const number = Number.parseInt(opts.indent, 10);
101101
if (Number.isNaN(number)) {
102102
console.error(
103103
"error: option '--indent' argument must be an integer number"

0 commit comments

Comments
 (0)