Skip to content

Getting Started has outdated Package.swift example source? #524

@iainhouston

Description

@iainhouston

As described in the Getting Started (count.swift) example, Package.swift contains

targets: [
    .target(
        name: "count",
        dependencies: [.product(name: "ArgumentParser", package: "swift-argument-parser")]),
]

but swift.run emitted:

 error: no executable product available

until I changed .target to .executableTarget

ArgumentParser version: main branch 1.2.0
Swift version:

 swift-driver version: 1.62.15 Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)
 Target: x86_64-apple-macosx13.0

Checklist

  • [tick ] If possible, I've reproduced the issue using the main branch of this package
  • [tick ] I've searched for existing GitHub issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions