Skip to content

Commit

Permalink
review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
rauhul committed Sep 9, 2022
1 parent 16141d8 commit bebda5b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Sources/ArgumentParser/Parsable Properties/Argument.swift
Expand Up @@ -322,7 +322,7 @@ extension Argument {
Optional @Arguments with default values should be declared as non-Optional.
""")
public init<T>(
wrappedValue: Value,
wrappedValue: Optional<T>,
help: ArgumentHelp? = nil,
completion: CompletionKind? = nil
) where T: ExpressibleByArgument, Value == Optional<T> {
Expand Down Expand Up @@ -403,7 +403,7 @@ extension Argument {
Optional @Arguments with default values should be declared as non-Optional.
""")
public init<T>(
wrappedValue: Value,
wrappedValue: Optional<T>,
help: ArgumentHelp? = nil,
completion: CompletionKind? = nil,
transform: @escaping (String) throws -> T
Expand Down
8 changes: 4 additions & 4 deletions Sources/ArgumentParser/Parsable Properties/Option.swift
Expand Up @@ -433,7 +433,7 @@ extension Option {
Optional @Options with default values should be declared as non-Optional.
""")
public init<T>(
wrappedValue: Value,
wrappedValue: Optional<T>,
name: NameSpecification = .long,
parsing parsingStrategy: SingleValueParsingStrategy = .next,
help: ArgumentHelp? = nil,
Expand Down Expand Up @@ -533,7 +533,7 @@ extension Option {
Optional @Options with default values should be declared as non-Optional.
""")
public init<T>(
wrappedValue: Value,
wrappedValue: Optional<T>,
name: NameSpecification = .long,
parsing parsingStrategy: SingleValueParsingStrategy = .next,
help: ArgumentHelp? = nil,
Expand Down Expand Up @@ -605,7 +605,7 @@ extension Option {
/// - help: Information about how to use this option.
/// - completion: Kind of completion provided to the user for this option.
public init<T>(
wrappedValue: Value,
wrappedValue: Array<T>,
name: NameSpecification = .long,
parsing parsingStrategy: ArrayParsingStrategy = .singleValue,
help: ArgumentHelp? = nil,
Expand Down Expand Up @@ -678,7 +678,7 @@ extension Option {
/// - transform: A closure that converts a string into this property's
/// element type or throws an error.
public init<T>(
wrappedValue: Value,
wrappedValue: Array<T>,
name: NameSpecification = .long,
parsing parsingStrategy: ArrayParsingStrategy = .singleValue,
help: ArgumentHelp? = nil,
Expand Down
Expand Up @@ -2,7 +2,7 @@
//
// This source file is part of the Swift Argument Parser open source project
//
// Copyright (c) 2020 Apple Inc. and the Swift project authors
// Copyright (c) 2022 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
Expand Down
Expand Up @@ -2,7 +2,7 @@
//
// This source file is part of the Swift Argument Parser open source project
//
// Copyright (c) 2020 Apple Inc. and the Swift project authors
// Copyright (c) 2022 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
Expand Down

0 comments on commit bebda5b

Please sign in to comment.