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

Commit 32111c0

Browse files
committed
fix: object input-enc flag
1 parent 2cec2a4 commit 32111c0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
"temp": "^0.8.3",
144144
"through2": "^2.0.3",
145145
"update-notifier": "^2.1.0",
146-
"yargs": "^7.0.2"
146+
"yargs": "^6.6.0"
147147
},
148148
"contributors": [
149149
"Andrew de Andrade <[email protected]>",

src/cli/commands/object/put.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = {
2929
describe: 'Stores input as a DAG object, outputs its key',
3030

3131
builder: {
32-
inputenc: {
32+
'input-enc': {
3333
type: 'string',
3434
default: 'json'
3535
}
@@ -38,7 +38,7 @@ module.exports = {
3838
handler (argv) {
3939
if (argv.data) {
4040
const buf = fs.readFileSync(argv.data)
41-
putNode(buf, argv.inputenc)
41+
putNode(buf, argv.inputEnc)
4242
return
4343
}
4444

@@ -47,7 +47,7 @@ module.exports = {
4747
throw err
4848
}
4949

50-
putNode(input, argv.inputenc)
50+
putNode(input, argv.inputEnc)
5151
}))
5252
}
5353
}

0 commit comments

Comments
 (0)