Ecosyste.ms: Funds

An open API service for providing issue and pull request metadata for open source projects.

https://github.com/docopt/docopt.go

Last synced: about 3 hours ago

Repository metadata:

A command-line arguments parser that will make you smile.


Owner metadata:


Committers metadata

Last synced: 1 day ago

Total Commits: 84
Total Committers: 6
Avg Commits per committer: 14.0
Development Distribution Score (DDS): 0.452

Commits in past year: 0
Committers in past year: 0
Avg Commits per committer in past year: 0.0
Development Distribution Score (DDS) in past year: 0.0

Name Email Commits
David Irvine a****r@g****m 46
Keith Batten k****n@g****m 20
Matt Boersma m****t@s****g 12
Andrew Pennebaker a****r@g****m 4
Quint Guvernator q****c@g****m 1
Tim Holland t****d@g****m 1

Issue and Pull Request metadata

Last synced: about 3 hours ago


Package metadata

go: github.com/docopt/docopt.go

Package docopt parses command-line arguments based on a help message. Given a conventional command-line help message, docopt processes the arguments. See https://github.com/docopt/docopt#help-message-format for a description of the help message format. This package exposes three different APIs, depending on the level of control required. The first, simplest way to parse your docopt usage is to just call: This will use os.Args[1:] as the argv slice, and use the default parser options. If you want to provide your own version string and args, then use: If the last parameter (version) is a non-empty string, it will be printed when --version is given in the argv slice. Finally, we can instantiate our own docopt.Parser which gives us control over how things like help messages are printed and whether to exit after displaying usage messages, etc. In particular, setting your own custom HelpHandler function makes unit testing your own docs with example command line invocations much more enjoyable. All three of these return a map of option names to the values parsed from argv, and an error or nil. You can get the values using the helpers, or just treat it as a regular map: Additionally, you can `Bind` these to a struct, assigning option values to the exported fields of that struct, all at once.

  • Homepage: https://github.com/docopt/docopt.go
  • Documentation: https://pkg.go.dev/github.com/docopt/docopt.go#section-documentation
  • Licenses: MIT
  • Latest release: v0.0.0-20180111231733-ee0de3bc6815 (published almost 7 years ago)
  • Last Synced: 2024-11-08T23:31:27.590Z (1 day ago)
  • Versions: 1
  • Dependent Packages: 19
  • Dependent Repositories: 27
  • Docker Downloads: 237
  • Rankings:
    • Dependent repos count: 1.071%
    • Dependent packages count: 1.093%
    • Docker downloads count: 1.505%
    • Average: 1.58%
    • Stargazers count: 1.752%
    • Forks count: 2.479%
go: gopkg.in/docopt/docopt.go.v0

Package docopt parses command-line arguments based on a help message. Given a conventional command-line help message, docopt processes the arguments. See https://github.com/docopt/docopt#help-message-format for a description of the help message format. This package exposes three different APIs, depending on the level of control required. The first, simplest way to parse your docopt usage is to just call: This will use os.Args[1:] as the argv slice, and use the default parser options. If you want to provide your own version string and args, then use: If the last parameter (version) is a non-empty string, it will be printed when --version is given in the argv slice. Finally, we can instantiate our own docopt.Parser which gives us control over how things like help messages are printed and whether to exit after displaying usage messages, etc. In particular, setting your own custom HelpHandler function makes unit testing your own docs with example command line invocations much more enjoyable. All three of these return a map of option names to the values parsed from argv, and an error or nil. You can get the values using the helpers, or just treat it as a regular map: Additionally, you can `Bind` these to a struct, assigning option values to the exported fields of that struct, all at once.

  • Homepage: https://github.com/docopt/docopt.go
  • Documentation: https://pkg.go.dev/gopkg.in/docopt/docopt.go.v0#section-documentation
  • Licenses: MIT
  • Latest release: v0.0.0-20180111231733-ee0de3bc6815 (published almost 7 years ago)
  • Last Synced: 2024-11-09T00:39:24.894Z (1 day ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Stargazers count: 1.08%
    • Forks count: 1.532%
    • Average: 4.739%
    • Dependent packages count: 6.999%
    • Dependent repos count: 9.346%