From f8b82c989c283201b2a42f0e6999a45342db80c3 Mon Sep 17 00:00:00 2001 From: hugehoge Date: Sun, 30 Jan 2022 10:22:11 +0900 Subject: [PATCH] Support `--version` option Implement using a feature that Swift Argument Parser provided. --- Sources/LicensePlist/main.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/LicensePlist/main.swift b/Sources/LicensePlist/main.swift index 6b09508d..93a4d511 100644 --- a/Sources/LicensePlist/main.swift +++ b/Sources/LicensePlist/main.swift @@ -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