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

fix: name resolve arg parsing #1958

Merged
merged 1 commit into from
Mar 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/cli/commands/daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module.exports = {
default: false
})
.option('offline', {
type: 'boolean',
desc: 'Run offline. Do not connect to the rest of the network but provide local API.',
default: false
})
Expand Down
4 changes: 3 additions & 1 deletion src/cli/commands/name/resolve.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ module.exports = {

builder: {
nocache: {
type: 'boolean',
alias: 'n',
describe: 'Do not use cached entries. Default: false.',
default: false
},
recursive: {
type: 'boolean',
alias: 'r',
recursive: 'Resolve until the result is not an IPNS name. Default: false.',
describe: 'Resolve until the result is not an IPNS name. Default: false.',
default: false
}
},
Expand Down
3 changes: 1 addition & 2 deletions test/cli/name.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,7 @@ describe('name', () => {
})
})

// FIXME: currently failing, resolve before 0.35 release!
it.skip('should go recursively until finding an ipfs hash', function () {
it('should go recursively until finding an ipfs hash', function () {
this.timeout(90 * 1000)

return ipfs(`name publish ${cidAdded}`)
Expand Down