Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix crash in help command #47

Merged
merged 3 commits into from
Jan 5, 2016
Merged

Fix crash in help command #47

merged 3 commits into from
Jan 5, 2016

Conversation

ikesyo
Copy link
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).

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

mdiep commented Jan 5, 2016

Good catch! Can we add a test for this?

@ikesyo
Copy link
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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants