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.
- Host: GitHub
- URL: https://github.com/docopt/docopt.go
- Owner: docopt
- License: mit
- Created: 2013-08-25T23:05:52.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2023-12-07T05:59:57.000Z (11 months ago)
- Last Synced: 2024-10-29T17:49:08.328Z (11 days ago)
- Language: Go
- Homepage: http://docopt.org/
- Size: 121 KB
- Stars: 1,431
- Watchers: 31
- Forks: 108
- Open Issues: 31
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Owner metadata:
- Name: docopt
- Login: docopt
- Email:
- Kind: organization
- Description:
- Website: http://docopt.org
- Location: Your terminal
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/1820478?v=4
- Repositories: 26
- Last Synced at: 2024-03-25T20:28:48.298Z
- Profile URL: https://github.com/docopt
- Sponsor URL:
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 | 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
- Total packages: 2
- Total downloads: unknown
- Total docker downloads: 237
- Total dependent packages: 19 (may contain duplicates)
- Total dependent repositories: 27 (may contain duplicates)
- Total versions: 2
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%