未验证 提交 e8d563c1 编写于 作者: X XhmikosR 提交者: GitHub

Fix invalid radix in cli (#1446)

上级 bc5c4ea2
......@@ -72,7 +72,7 @@ async function action(args, opts, command) {
var config = {};
if (opts.precision != null) {
const number = Number.parseInt(opts.precision, 0);
const number = Number.parseInt(opts.precision, 10);
if (Number.isNaN(number)) {
console.error(
"error: option '-p, --precision' argument must be an integer number"
......@@ -97,7 +97,7 @@ async function action(args, opts, command) {
}
if (opts.indent != null) {
const number = Number.parseInt(opts.indent, 0);
const number = Number.parseInt(opts.indent, 10);
if (Number.isNaN(number)) {
console.error(
"error: option '--indent' argument must be an integer number"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册