apple / apple/swift-argument-parser

Add AsyncParsableArguments to support validating async arguments

Open
#630 6 comments 5 reactions 0 assignees View on GitHub
wontfix
Dominant language
Swift
Stars
3.8k
Forks
411
Avg merge
7d 14h
Merged PRs (30d)
15

Description

Currently to share arguments across commands you can create a `ParsableArguments` type which contains your arguments/options, and can use `func validate() throws` to validate the arguments.

This fails for things that must be validated in an async manner. We should consider adding an async API for validating or `AsyncParsableArguments` to support this.

Contributor guide

Open the contributing guide

Research direction

Start with the existing ParsableArguments type and its validate() throws API to understand how shared argument validation currently works. The issue does not name files or tests and leaves the async API shape and completion criteria open, so those decisions need to be resolved before implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.