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

Commit

Permalink
Merge pull request #477 from ipfs/issue-476-no-cat-output
Browse files Browse the repository at this point in the history
fix(cli): use right argument for cli .cat
  • Loading branch information
daviddias authored Sep 11, 2016
2 parents 7b2f8ee + dd3fe88 commit 1c2ca57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/commands/files/cat.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
builder: {},

handler (argv) {
const path = argv.ipfsPath
const path = argv['ipfs-path']
utils.getIPFS((err, ipfs) => {
if (err) {
throw err
Expand Down
1 change: 1 addition & 0 deletions test/cli/test-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ describe('files', () => {
.run((err, stdout, exitcode) => {
expect(err).to.not.exist
expect(exitcode).to.equal(0)
expect(stdout[0]).to.equal('hello world')
done()
})
})
Expand Down

0 comments on commit 1c2ca57

Please sign in to comment.