[Lldb-commits] [lldb] [lldb] Add version subcommand to swift-debugserver (PR #234769)
Augusto Noronha via lldb-commits
lldb-commits at lists.llvm.org
Fri Oct 30 14:57:03 PDT 2026
================
@@ -1,5 +1,20 @@
-internal struct Version {
- internal static func printVersion() {
- print("swift_debugserver Version 0.0.1")
+struct Version: Subcommand {
+ static let helpText = """
+ Usage:
+ swift-debugserver version
+
+ Displays the version of swift-debugserver.
+ """
+
+ static func parse(_ args: ArraySlice<String>)
----------------
augusto2112 wrote:
Nit: unlike C++, in Swift your inits can return optional or throw, so you don't _need_ this to be a static function, but up to you either way.
https://github.com/llvm/llvm-project/pull/234769
More information about the lldb-commits
mailing list