Closed Austinpayne closed 3 months ago
Thanks, @Austinpayne! This is a great addition — when I saw it I thought, "don't we have that already?"
Would you mind adding a test that verifies that this will parse and run an async command correctly? Thank you!
@swift-ci Please test
@swift-ci Please test
@swift-ci Please test
Adds a new static main function to
AsyncParsableCommand
to allow users to manually pass in arguments. The new functions behaves identically to the version found inParsableCommand
(see: https://github.com/apple/swift-argument-parser/blob/main/Sources/ArgumentParser/Parsable%20Types/ParsableCommand.swift#L126). This functionality is useful for manually building an argument list, e.g. when building a busybox~like binary.Checklist