An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 2.0% on proxy.golang.org
Top 0.4% dependent packages on proxy.golang.org
Top 0.6% dependent repos on proxy.golang.org
Top 4.0% forks on proxy.golang.org
Top 1.3% docker downloads on proxy.golang.org

proxy.golang.org : github.com/voxelbrain/goptions

package goptions implements a flexible parser for command line options. Key targets were the support for both long and short flag versions, mutually exclusive flags, and verbs. Flags and their corresponding variables are defined by the tags in a (possibly anonymous) struct. Short flags can be combined (e.g. `-nfv`). Long flags take their value after a separating space. The equals notation (`--long-flag=value`) is NOT supported right now. Every member of the struct which is supposed to catch a command line value has to have a "goptions" tag. The contains the short and long flag names for this member but can additionally specify any of these options below. Depending on the type of the struct member, additional options might become available: If a member is a slice type, multiple definitions of the flags are possible. For each specification the underlying type will be used. goptions also has support for verbs. Each verb accepts its own set of flags which take exactly the same tag format as global options. For an usage example of verbs see the PrintHelp() example.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/voxelbrain/goptions
License: BSD-3-Clause
Latest release: almost 7 years ago
First release: almost 7 years ago
Namespace: github.com/voxelbrain
Dependent packages: 100
Dependent repositories: 122
Stars: 182 on GitHub
Forks: 33 on GitHub
Docker dependents: 6
Docker downloads: 2,178
See more repository details: repos.ecosyste.ms
Last synced: about 20 hours ago

    Loading...
    Readme
    Loading...