Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 8e63ab4

Browse files
committed
fix: init.bits should be a number
1 parent 417abf7 commit 8e63ab4

File tree

2 files changed

+3
-2
lines changed
  • packages

2 files changed

+3
-2
lines changed

packages/interface-ipfs-core/src/add.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ module.exports = (common, options) => {
5555

5656
after(() => common.clean())
5757

58-
it('should respect timeout option when adding files', () => {
58+
it('should respect timeout option when adding file', () => {
5959
return testTimeout(() => ipfs.add('Hello', {
6060
timeout: 1
6161
}))

packages/ipfs-cli/src/commands/init.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ module.exports = {
2727
type: 'number',
2828
alias: 'b',
2929
default: '2048',
30-
describe: 'Number of bits to use in the generated RSA private key (defaults to 2048)'
30+
describe: 'Number of bits to use in the generated RSA private key (defaults to 2048)',
31+
coerce: Number
3132
})
3233
.option('empty-repo', {
3334
alias: 'e',

0 commit comments

Comments
 (0)