From 9a8847dd4f895cb63b495463fd1786f14081ae15 Mon Sep 17 00:00:00 2001 From: Doug Gregor Date: Tue, 31 Aug 2021 09:56:50 -0700 Subject: [PATCH] [swift-inspect] Make sure to initialize backtrace flags. This eliminates a compilation error with Swift 5.5 and the latest argument parser library. --- tools/swift-inspect/Sources/swift-inspect/main.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/swift-inspect/Sources/swift-inspect/main.swift b/tools/swift-inspect/Sources/swift-inspect/main.swift index 20e054ebc05f9..2fcf54e85e854 100644 --- a/tools/swift-inspect/Sources/swift-inspect/main.swift +++ b/tools/swift-inspect/Sources/swift-inspect/main.swift @@ -159,10 +159,10 @@ struct UniversalOptions: ParsableArguments { struct BacktraceOptions: ParsableArguments { @Flag(help: "Show the backtrace for each allocation") - var backtrace: Bool + var backtrace: Bool = false @Flag(help: "Show a long-form backtrace for each allocation") - var backtraceLong: Bool + var backtraceLong: Bool = false var style: Backtrace.Style? { backtrace ? .oneLine :