Skip to content

Commit

Permalink
Merge pull request #170 from mediachain/yn-version-cmd
Browse files Browse the repository at this point in the history
Add --version flag to mcclient and aleph
  • Loading branch information
parkan committed Jan 19, 2017
2 parents f0b0936 + 7ceabf5 commit 8ece060
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/client/cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const yargs = require('yargs')
yargs
.usage('Usage: $0 [options] <command> [command-options]')
.help()
.version()
.demand(1, 'Missing command argument')
.option('apiUrl', {
alias: ['p'],
Expand Down
1 change: 1 addition & 0 deletions src/peer/repl/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ function ensureDirExists (filePath: string, fileDescription = 'file') {
require('yargs')
.usage('Usage: $0 [options] <command> [command-options]')
.help()
.version()
.example('$0 repl', 'start the aleph repl')
.demand(1, 'Missing command argument')
.commandDir('commands')
Expand Down

0 comments on commit 8ece060

Please sign in to comment.