Skip to content

Commit

Permalink
SR-10803 Add clearer usage documentation to --type parameter
Browse files Browse the repository at this point in the history
Add a more descriptive usage string for the --type parameter
on swift package init.
  • Loading branch information
anayini committed Jun 7, 2019
1 parent c2dc30a commit 06c5e2e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Sources/Commands/SwiftPackageTool.swift
Expand Up @@ -363,8 +363,14 @@ public class SwiftPackageTool: SwiftTool<PackageToolOptions> {
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(
Expand Down

0 comments on commit 06c5e2e

Please sign in to comment.