Skip to content

Commit

Permalink
Minor fix up of CLI options
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrichina committed Apr 25, 2019
1 parent eebec9a commit 262040f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions bin/near
Expand Up @@ -45,7 +45,12 @@ const build = {
const createAccount = {
command: 'create_account',
desc: 'create a developer account',
builder: (yargs) => yargs,
builder: (yargs) => yargs
.option('accountId', {
desc: 'Unique identifier for the newly created account',
type: 'string',
required: true
}),
handler: (argv) => exitOnError(main.createDevAccount(argv))
};

Expand Down Expand Up @@ -89,16 +94,14 @@ yargs // eslint-disable-line
.option('helperUrl', {
desc: 'NEAR contract helper URL',
type: 'string',
default: 'http://localhost:3030'
})
.option('useDevAccount', {
desc: 'Forces use of special "developer" account (only works on local node)',
type: 'boolean',
})
.option('accountId', {
desc: 'Unique identifier for the new account',
desc: 'Unique identifier for the account',
type: 'string',
required: true
})
.command(createAccount)
.command(build)
Expand Down

0 comments on commit 262040f

Please sign in to comment.