Skip to content

Fix crash in help command#47

Merged
mdiep merged 3 commits intomasterfrom
fix-help-command-crash
Jan 5, 2016
Merged

Fix crash in help command#47
mdiep merged 3 commits intomasterfrom
fix-help-command-crash

Conversation

@ikesyo
Copy link
Copy Markdown
Member

@ikesyo ikesyo commented Jan 5, 2016

This avoids force unwrapping of error in usage closure. Some options may return .Success case for CommandMode.Usage (e.g. NoOptions).

Sould fix realm/SwiftLint#312 (comment).

ikesyo added 2 commits January 5, 2016 21:09
This avoids force unwrapping of error in `usage` closure. Some options may return `.Success` case for `CommandMode.Usage` (e.g. `NoOptions`).
@mdiep
Copy link
Copy Markdown
Member

mdiep commented Jan 5, 2016

Good catch! Can we add a test for this?

@ikesyo ikesyo force-pushed the fix-help-command-crash branch from c78c336 to 8ebcf1a Compare January 5, 2016 14:40
@ikesyo
Copy link
Copy Markdown
Member Author

ikesyo commented Jan 5, 2016

Thanks, added a test. 😃

mdiep added a commit that referenced this pull request Jan 5, 2016
@mdiep mdiep merged commit dc61e22 into master Jan 5, 2016
@mdiep mdiep deleted the fix-help-command-crash branch January 5, 2016 15:02
argon added a commit to mas-cli/mas that referenced this pull request Feb 21, 2016
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