Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,5 @@ jobs:
name: Soundness
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main
with:
license_header_check_enabled: false # feature: https://github.com/swiftlang/github-workflows/issues/78
license_header_check_project_name: "Swift Argument Parser" # bug: https://github.com/swiftlang/github-workflows/issues/76
shell_check_enabled: false # bug: https://github.com/apple/swift-argument-parser/issues/703
10 changes: 10 additions & 0 deletions .license_header_template
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@@===----------------------------------------------------------------------===@@
@@
@@ This source file is part of the Swift Argument Parser open source project
@@
@@ Copyright (c) YEARS Apple Inc. and the Swift project authors
@@ Licensed under Apache License v2.0 with Runtime Library Exception
@@
@@ See https://swift.org/LICENSE.txt for license information
@@
@@===----------------------------------------------------------------------===@@
29 changes: 29 additions & 0 deletions .licenseignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
.gitignore
**/.gitignore
.licenseignore
.gitattributes
.git-blame-ignore-revs
.mailfilter
.mailmap
.spi.yml
.swift-format
.editorconfig
.github/*
*.md
*.mdoc
*.txt
*.yml
*.yaml
*.json
*.png
*.bash
*.cmake
*.cmake.in
Package.swift
**/Package.swift
Package@*.swift
**/Package@*.swift
Package.resolved
**/Package.resolved
.unacceptablelanguageignore
**/Snapshots/*
3 changes: 1 addition & 2 deletions Examples/color/Color.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
// This source file is part of the Swift Argument Parser open source project
//
// Copyright (c) 2024 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//

Expand Down
2 changes: 1 addition & 1 deletion Examples/count-lines/CountLines.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Examples/math/Math.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Examples/repeat/Repeat.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Examples/roll/SplitMix64.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Examples/roll/main.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// swift-tools-version:5.7
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
2 changes: 1 addition & 1 deletion [email protected]
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// swift-tools-version:5.8
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Plugins/GenerateManual/GenerateManualPlugin.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Plugins/GenerateManual/GenerateManualPluginError.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Plugins/GenerateManual/PackagePlugin+Helpers.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Scripts/format.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
##===----------------------------------------------------------------------===##
##
## This source file is part of the Swift Argument Parser open source project
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
// Copyright (c) 2020 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
//
//===----------------------------------------------------------------------===//

struct FishCompletionsGenerator {
static func generateCompletionScript(_ type: ParsableCommand.Type) -> String {
let programName = type._commandName
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
// This source file is part of the Swift Argument Parser open source project
//
// Copyright (c) 2024 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/ArgumentParser/Parsable Properties/Errors.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/ArgumentParser/Parsable Properties/Flag.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/ArgumentParser/Parsable Properties/Option.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/ArgumentParser/Parsable Types/CommandGroup.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/ArgumentParser/Parsing/ArgumentDecoder.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/ArgumentParser/Parsing/ArgumentDefinition.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/ArgumentParser/Parsing/ArgumentSet.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/ArgumentParser/Parsing/CommandParser.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/ArgumentParser/Parsing/InputKey.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/ArgumentParser/Parsing/InputOrigin.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/ArgumentParser/Parsing/Name.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/ArgumentParser/Parsing/Parsed.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/ArgumentParser/Parsing/ParsedValues.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/ArgumentParser/Parsing/ParserError.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/ArgumentParser/Parsing/SplitArguments.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/ArgumentParser/Usage/DumpHelpGenerator.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/ArgumentParser/Usage/HelpCommand.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/ArgumentParser/Usage/HelpGenerator.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/ArgumentParser/Usage/MessageInfo.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/ArgumentParser/Usage/UsageGenerator.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/ArgumentParser/Utilities/Mutex.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------------------------------------------*- swift -*-===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Argument Parser open source project
//
Expand Down
Loading