From 06c5e2e3cc9a52174e2fcb7267bed92b585de8e3 Mon Sep 17 00:00:00 2001 From: Arjun Nayini Date: Fri, 7 Jun 2019 11:31:03 -0700 Subject: [PATCH] SR-10803 Add clearer usage documentation to --type parameter Add a more descriptive usage string for the --type parameter on swift package init. --- Sources/Commands/SwiftPackageTool.swift | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Sources/Commands/SwiftPackageTool.swift b/Sources/Commands/SwiftPackageTool.swift index 3610c6b0728..f518ee8010a 100644 --- a/Sources/Commands/SwiftPackageTool.swift +++ b/Sources/Commands/SwiftPackageTool.swift @@ -363,8 +363,14 @@ public class SwiftPackageTool: SwiftTool { binder.bind( option: initPackageParser.add( option: "--type", kind: InitPackage.PackageType.self, - usage: "empty|library|executable|system-module"), - to: { $0.initMode = $1 }) + usage: """ + Configure the type of your package + empty - Create an empty package + library - Create a package that contains a library + executable - Create a package that contains a binary executable + system-module - Create a package that contains a system module + """ + ), to: { $0.initMode = $1 }) binder.bind( option: initPackageParser.add(