Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Include and maintain docopt.go in standard library #42327

Closed
soerenkoehler opened this issue Nov 1, 2020 · 4 comments
Closed

Proposal: Include and maintain docopt.go in standard library #42327

soerenkoehler opened this issue Nov 1, 2020 · 4 comments
Labels
FrozenDueToAge Proposal WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Milestone

Comments

@soerenkoehler
Copy link

soerenkoehler commented Nov 1, 2020

Issue

Benefit

The go standard library would provide some nice standard command line argument parser so projects do in this regard not depend on (possibly abandoned) third party work.

Motivation

Compare with e.g. Python. It has an argument parser included in the standard library: https://docs.python.org/3/library/argparse.html

@gopherbot gopherbot added this to the Proposal milestone Nov 1, 2020
@mvdan
Copy link
Member

mvdan commented Nov 1, 2020

https://golang.org/doc/faq#x_in_std

In particular, I don't see why a third party package going unmaintained should mean that the standard library should adopt it. If that were normal, the standard library would be much larger than it currnetly is.

@mvdan mvdan added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Nov 1, 2020
@martisch
Copy link
Contributor

martisch commented Nov 2, 2020

This seems the wrong way around. If docopt would be widely used and in need of dedicated maintenance I would assume it would have been forked and continued to be maintained.

All packages not tied to the runtime or used by the go toolchain can happily be maintained if there are developers willing to maintain them outside the std lib. This also has the advantage of not being tied to go release cycles and putting the API under the Go API compatibility rules.

@soerenkoehler
Copy link
Author

@martisch @mvdan:
Points accepted. Go obviously has a much narrower notion of a std-lib than e.g Python. No need to break basic design decisions.

I'll try the plan B: Reach out to the docopt-team and see if the project is still alive or do a private fork or switch to a more actively maintained argument parser.

@mkatychev
Copy link

@soerenkoehler I'm also interested in keeping the project going, I think the consistency of PRs in docopt.go is also testament that there is a community desire to keep maintenance going.

@golang golang locked and limited conversation to collaborators Nov 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge Proposal WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

5 participants