Skip to content

Commit

Permalink
fix(commands): Misleading error for space use with empty --space-id
Browse files Browse the repository at this point in the history
Command contentful space use --space-id, entered without space-id lets you choose interactively from your spaces.
  • Loading branch information
Johann committed Jul 19, 2019
1 parent c31e158 commit 3e81e6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/cmds/space_cmds/environment_cmds/use.js
Expand Up @@ -18,7 +18,8 @@ export const builder = (yargs) => {
.usage('Usage: contentful space environment use')
.option('environment-id', {
alias: 'e',
describe: 'ID of the Environment within the currently active Space to use for other commands'
describe: 'ID of the Environment within the currently active Space to use for other commands',
type: 'string'
})
.option('management-token', {
alias: 'mt',
Expand Down
3 changes: 2 additions & 1 deletion lib/cmds/space_cmds/use.js
Expand Up @@ -18,7 +18,8 @@ export const builder = (yargs) => {
.usage('Usage: contentful space use')
.option('space-id', {
alias: 's',
describe: 'ID of the Space to use for other commands'
describe: 'ID of the Space to use for other commands',
type: 'string'
})
.epilog('Copyright 2018 Contentful, this is a BETA release')
}
Expand Down

0 comments on commit 3e81e6e

Please sign in to comment.