Skip to content

Commit 55bf34d

Browse files
committed
Enclose argument names inside [] in --help
1 parent e94be40 commit 55bf34d

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)