Merge pull request #318 from 5t111111/fix-command-example-code

Fix example code in Command doc
This commit is contained in:
Tanner 2018-05-15 18:45:03 -04:00 committed by GitHub
commit 7b29daf0d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ struct CowsayCommand: Command {
...
/// See `Command`.
func run(using context: CommandContext) throws -> Future {
func run(using context: CommandContext) throws -> Future<Void> {
let message = try context.argument("message")
/// We can use requireOption here since both options have default values
let eyes = try context.requireOption("eyes")