Skip to content

Commit 31e46f0

Browse files
committed
Merge pull request #17 from neonichu/master
Enclose argument names inside [] in --help
2 parents e94be40 + c79f3b2 commit 31e46f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/ArgumentDescription.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ class Help : ErrorType, CustomStringConvertible {
249249
let options = descriptors.filter { $0.type == ArgumentType.Option }
250250

251251
if let command = command {
252-
let args = arguments.map { $0.name }
252+
let args = arguments.map { "<\($0.name)>" }
253253
let usage = ([command] + args).joinWithSeparator(" ")
254254

255255
output.append("Usage:")

0 commit comments

Comments
 (0)