diff --git a/Tests/SwiftlyTests/SubcommandParsingTests.swift b/Tests/SwiftlyTests/SubcommandParsingTests.swift new file mode 100644 index 00000000..adc11112 --- /dev/null +++ b/Tests/SwiftlyTests/SubcommandParsingTests.swift @@ -0,0 +1,12 @@ +import ArgumentParser +@testable import Swiftly +import Testing + +// Test for simple mistakes declaring options and arguments in subcommands +// that only show up at runtime. For example, a non-optional type for an +// @Option will produce an error "Replace with a static variable, or let constant." +@Suite struct SubcommandParsingTests { + @Test func selfUpdateParse() throws { + try SelfUpdate.parse([]) + } +}