Last active
January 25, 2016 00:08
-
-
Save andrewjmead/f3540895ed30baaf60cc to your computer and use it in GitHub Desktop.
Adding masterPassword to get command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
command('get', 'Get an existing account', function (yargs) { | |
yargs.options({ | |
name: { | |
demand: true, | |
alias: 'n', | |
description: 'Account name (eg: Twitter, Facebook)', | |
type: 'string' | |
}, | |
masterPassword: { | |
demand: true, | |
alias: 'm', | |
description: 'Master password', | |
type: 'string' | |
} | |
}).help('help'); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment