pcapriotti / pcapriotti/optparse-applicative

Parsers that consume multiple arguments

Open
#284 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Haskell
Stars
959
Forks
123
Avg merge
3d 19h
Merged PRs (30d)
1

Description

Is there a way to write a parser for an option that takes multiple command-line arguments?

For example, if I wanted the command-line args

-p one two -p three four

to be parsed into a result like

[("one", "two"), ("three", "four")]

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file, test, or entry point is named. Start by locating the option-argument parser API and its existing handling of repeated or multiple arguments, then compare it with the example. Done means the command-line input produces the requested list of pairs and has coverage for repeated options.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.