Skip to content

Commit

Permalink
Support --version option
Browse files Browse the repository at this point in the history
Implement using a feature that Swift Argument Parser provided.
  • Loading branch information
hugehoge committed Jan 30, 2022
1 parent 333c735 commit f8b82c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/LicensePlist/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ extension CompletionKind {

// Typename used for usage in help command
struct LicensePlist: ParsableCommand {
static let configuration = CommandConfiguration(version: Consts.version)

@Option(name: .long, completion: .file())
var cartfilePath = Consts.cartfileName

Expand Down

0 comments on commit f8b82c9

Please sign in to comment.