Skip to content

Commit

Permalink
[Utility] Rename COMMANDS to POSITIONAL ARGUMENTS
Browse files Browse the repository at this point in the history
- <rdar://problem/33851991> `swift run --help` says COMMANDS where it should say OPTIONS
  • Loading branch information
aciidgh committed Oct 25, 2017
1 parent 067afc5 commit 71943b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Utility/ArgumentParser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@ public final class ArgumentParser {

if positionalArguments.count > 0 {
stream <<< "\n\n"
stream <<< "COMMANDS:"
stream <<< "POSITIONAL ARGUMENTS:"
for argument in positionalArguments.lazy.sorted(by: {$0.name < $1.name}) {
guard let usage = argument.usage else { continue }
print(formatted: argument.name, usage: usage, on: stream)
Expand Down

0 comments on commit 71943b7

Please sign in to comment.