mirror of
https://github.com/Sunnyyoung/WeChatTweak-macOS.git
synced 2025-12-16 17:15:41 +08:00
command: fix default command flow to show help instead of error
This commit is contained in:
parent
a58f04b1d4
commit
171c352dce
|
|
@ -105,11 +105,15 @@ struct Tweak: AsyncParsableCommand {
|
||||||
subcommands: [
|
subcommands: [
|
||||||
Versions.self,
|
Versions.self,
|
||||||
Patch.self
|
Patch.self
|
||||||
],
|
]
|
||||||
defaultSubcommand: Self.self
|
|
||||||
)
|
)
|
||||||
|
|
||||||
static let config = URL(string:"https://raw.githubusercontent.com/sunnyyoung/WeChatTweak/refs/heads/feature/2.0/config.json")!
|
static let config = URL(string:"https://raw.githubusercontent.com/sunnyyoung/WeChatTweak/refs/heads/feature/2.0/config.json")!
|
||||||
|
|
||||||
|
mutating func run() async throws {
|
||||||
|
print(Tweak.helpMessage())
|
||||||
|
Darwin.exit(EXIT_SUCCESS)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Task {
|
Task {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user