Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Implement optional flag argument handling #167

Open
Tharre opened this issue Jan 23, 2016 · 0 comments
Open

Implement optional flag argument handling #167

Tharre opened this issue Jan 23, 2016 · 0 comments
Labels

Comments

@Tharre
Copy link

Tharre commented Jan 23, 2016

A lot of *nix programs (grep, make, ls, git to name a few) make use of optional flag arguments. Usually they look like this (taken from make --help):

-j [N], --jobs[=N]

So flag_j would essentially be a Option<Option<i32>>.

I'd like to see this feature in docopt as well.

This was also brought up in #299 in the vanilla docopt repo, but there have been no comments so far.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants