Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli): enforce single character option aliases #152

Merged
merged 1 commit into from
Jun 6, 2018

Conversation

eysi09
Copy link
Collaborator

@eysi09 eysi09 commented Jun 6, 2018

Fixes #151

src/cli/cli.ts Outdated
return cli.parse().then(result => shutdown(result.code))
try {
const cli = new GardenCli()
return cli.parse().then(result => shutdown(result.code))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it'd make sense to change this line along the way to

const result = await cli.parse()
shutdown(result.code)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! I threw in a finally statement there as well.

@eysi09 eysi09 force-pushed the single-char-aliases branch from 185896d to a49e799 Compare June 6, 2018 12:36
@edvald edvald merged commit c54c16d into master Jun 6, 2018
@edvald edvald deleted the single-char-aliases branch June 6, 2018 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants