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

Commit

Permalink
fix: remove local option from global commands
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos committed Oct 20, 2018
1 parent 9a82b05 commit 4a682f4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/cli/bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ const cli = yargs
type: 'string',
default: ''
})
.option('local', {
desc: 'Run the command locally, instead of using the daemon',
type: 'boolean',
default: false
})
.epilog(utils.ipfsPathHelp)
.demandCommand(1)
.fail((msg, err, yargs) => {
Expand Down
5 changes: 5 additions & 0 deletions src/cli/commands/daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ module.exports = {
type: 'boolean',
default: false
})
.option('local', {
desc: 'Run commands locally to the daemon',
type: 'boolean',
default: false
})
},

handler (argv) {
Expand Down
2 changes: 2 additions & 0 deletions src/core/components/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ module.exports = (self) => {
self.log('starting')
self.state.start()

console.log('options', self._options)

series([
(cb) => {
// The repo may be closed if previously stopped
Expand Down

0 comments on commit 4a682f4

Please sign in to comment.