Skip to content

Commit

Permalink
compatibility with ArgumentParser 0.0.6
Browse files Browse the repository at this point in the history
fixed bad flag parameters for dryRun option which fails validation since ArgumentParser 0.0.6 with error: Multiple (2) `Option` or `Flag` arguments are named "dry-run"
  • Loading branch information
jpmhouston authored May 23, 2020
1 parent c976af5 commit ccb955a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/RenameCommand/RenameCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public struct RenameOptions: ParsableArguments {
@Flag(name: .shortAndLong, help: "Verbose output (overrides \"--silent\").")
public var verbose: Bool

@Flag(name: [.long, .customLong("dry-run")], help: "Don't perform rename just output the result.")
@Flag(name: .customLong("dry-run"), help: "Don't perform rename just output the result.")
public var dryRun: Bool

public init() { } // swift complains if this not present
Expand Down

0 comments on commit ccb955a

Please sign in to comment.