Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-14630] package init --help missing information about valid values #4420

Open
krzyzanowskim opened this issue May 13, 2021 · 2 comments
Open
Labels

Comments

@krzyzanowskim
Copy link
Contributor

Previous ID SR-14630
Radar rdar://problem/77969257
Original Reporter @krzyzanowskim
Type Bug
Environment

Swift Package Manager - Swift 5.4.0

Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: d10b1e365ea31d02d4b07cb807aee621

Issue Description:

The package init valid type values are not listed

~ ❯ swift package init --type=foo
error: The value 'foo' is invalid for '--type <type>'
Usage: swift package init <options>
 See 'package init --help' for more information

but

~ ❯ swift package init --help
OVERVIEW: Initialize a new package
--type <type> (default: library)
@typesanitizer
Copy link

@swift-ci create

@sjavora
Copy link
Contributor

sjavora commented Feb 3, 2022

With Xcode 13.2.1, these types are now shown:

swift package init --type=foo
error: The value 'foo' is invalid for '--type <type>'
Help:  --type <type>  Package type: empty | library | executable | system-module | manifest
Usage: swift package init <options>
  See 'package init -help' for more information.

and the referenced command:

swift package init -help
OVERVIEW: Initialize a new package


USAGE: swift package init <options>


OPTIONS:
  --type <type>           Package type: empty | library | executable | system-module |
                          manifest (default: library)
  --name <name>           Provide custom package name 
  --version               Show the version.
  -help, -h, --help       Show help information.

So this can probably be closed @typesanitizer

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants