diff --git a/Documentation/06 Manual Parsing and Testing.md b/Documentation/06 Manual Parsing and Testing.md index 4aba8f949..c31294026 100644 --- a/Documentation/06 Manual Parsing and Testing.md +++ b/Documentation/06 Manual Parsing and Testing.md @@ -88,7 +88,7 @@ All of the parsing methods — `parse()`, `parseOrExit()`, and `parseAsRoot()` Let's update our `select` script above to strip out any words that contain all capital letters before parsing the inputs. ```swift -let noShoutingArguments = CommandLine.arguments.filter { phrase in +let noShoutingArguments = CommandLine.arguments.dropFirst().filter { phrase in phrase.uppercased() != phrase } let options = SelectOptions.parseOrExit(noShoutingArguments)