apple / apple/swift-argument-parser

Remaining arguments and plurality

Open
#155 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Swift
Stars
3.8k
Forks
411
Avg merge
7d 13h
Merged PRs (30d)
17

Description

I'd like to be able to optionally control the USAGE for `.remaining` parsing to provide appropriate plurality. The screenshot below suggests that the user enters multiple location hints. They do not. With the `.remaining` parsing, the arguments become a single location hint.

_What I see:_

`USAGE: now [--time

_What I want (ideas):_

`USAGE: now [--time

![image](https://user-images.githubusercontent.com/32688/82388997-32b6c780-99f8-11ea-85c9-7854e68e31da.png)

Contributor guide

Open the contributing guide

Research direction

Start by locating the `.remaining` argument parsing and the code that generates its USAGE text. Compare the current `[ ...]` output with the requested plurality forms, then verify that an optional configuration produces the intended usage wording without changing normal parsing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.