We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25315f0 commit a28817fCopy full SHA for a28817f
Tests/SwiftlyTests/SubcommandParsingTests.swift
@@ -0,0 +1,12 @@
1
+import ArgumentParser
2
+@testable import Swiftly
3
+import Testing
4
+
5
+// Test for simple mistakes declaring options and arguments in subcommands
6
+// that only show up at runtime. For example, a non-optional type for an
7
+// @Option will produce an error "Replace with a static variable, or let constant."
8
+@Suite struct SubcommandParsingTests {
9
+ @Test func selfUpdateParse() throws {
10
+ try SelfUpdate.parse([])
11
+ }
12
+}
0 commit comments