Ecosyste.ms: Repos
An open API service providing repository metadata for many open source software ecosystems.
Package Usage: go: github.com/spf13/pflag
Package pflag is a drop-in replacement for Go's flag package, implementing
POSIX/GNU-style --flags.
pflag is compatible with the GNU extensions to the POSIX recommendations
for command-line options. See
http://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html
Usage:
pflag is a drop-in replacement of Go's native flag package. If you import
pflag under the name "flag" then all code should continue to function
with no changes.
There is one exception to this: if you directly instantiate the Flag struct
there is one more field "Shorthand" that you will need to set.
Most code never instantiates this struct directly, and instead uses
functions such as String(), BoolVar(), and Var(), and is therefore
unaffected.
Define flags using flag.String(), Bool(), Int(), etc.
This declares an integer flag, -flagname, stored in the pointer ip, with type *int.
If you like, you can bind the flag to a variable using the Var() functions.
Or you can create custom flags that satisfy the Value interface (with
pointer receivers) and couple them to flag parsing by
For such flags, the default value is just the initial value of the variable.
After all flags are defined, call
to parse the command line into the defined flags.
Flags may then be used directly. If you're using the flags themselves,
they are all pointers; if you bind to variables, they're values.
After parsing, the arguments after the flag are available as the
slice flag.Args() or individually as flag.Arg(i).
The arguments are indexed from 0 through flag.NArg()-1.
The pflag package also defines some new functions that are not in flag,
that give one-letter shorthands for flags. You can use these by appending
'P' to the name of any function that defines a flag.
Shorthand letters can be used with single dashes on the command line.
Boolean shorthand flags can be combined with other shorthand flags.
Command line flag syntax:
Unlike the flag package, a single dash before an option means something
different than a double dash. Single dashes signify a series of shorthand
letters for flags. All but the last shorthand letter must be boolean flags.
Flag parsing stops after the terminator "--". Unlike the flag package,
flags can be interspersed with arguments anywhere on the command line
before this terminator.
Integer flags accept 1234, 0664, 0x1234 and may be negative.
Boolean flags (in their long form) accept 1, 0, t, f, true, false,
TRUE, FALSE, True, False.
Duration flags accept any input valid for time.ParseDuration.
The default set of command-line flags is controlled by
top-level functions. The FlagSet type allows one to define
independent sets of flags, such as to implement subcommands
in a command-line interface. The methods of FlagSet are
analogous to the top-level functions for the command-line
flag set.
8 versions
Latest release: 8 months ago
57,644 dependent packages
View more package details: https://packages.ecosyste.ms/registries/proxy.golang.org/packages/github.com/spf13/pflag
View more repository details: https://repos.ecosyste.ms/hosts/GitHub/repositories/spf13%2Fpflag
Dependent Repos 140,663
admariner/jitsu Fork of jitsucom/jitsu
Jitsu is an open-source data integration platform- v1.0.5 configurator/backend/go.mod
- v0.0.0-20170130214245-9ff6c6923cff configurator/backend/go.sum
- v1.0.1-0.20171106142849-4c012f6dcd95 configurator/backend/go.sum
- v1.0.1 configurator/backend/go.sum
- v1.0.3 configurator/backend/go.sum
- v1.0.5 configurator/backend/go.sum
- v1.0.5 server/go.mod
- v0.0.0-20170130214245-9ff6c6923cff server/go.sum
- v1.0.1-0.20171106142849-4c012f6dcd95 server/go.sum
- v1.0.1 server/go.sum
- v1.0.3 server/go.sum
- v1.0.5 server/go.sum
Size: 29.4 MB - Last synced: about 1 month ago - Pushed: 10 months ago
harryzcy/mailbox-cli
The CLI interface for Mailbox- v1.0.5 go.mod
- v1.0.5 go.sum
Size: 299 KB - Last synced: 1 day ago - Pushed: 2 days ago
kmodules/resource-metadata
API for defining metadata about Kubernetes resources- v1.0.5 go.mod
- v1.0.3 go.sum
- v1.0.5 go.sum
Size: 75.5 MB - Last synced: 1 day ago - Pushed: 2 days ago
brotherlogic/logging
Logging for system- v1.0.1 go.sum
Size: 336 KB - Last synced: 4 days ago - Pushed: 5 days ago
vearutop/cache-story
Demo repository for a blog post.- v1.0.5 go.mod
- v1.0.3 go.sum
- v1.0.5 go.sum
Size: 4.59 MB - Last synced: 2 months ago - Pushed: 2 months ago
ossf/scorecard-action
Official GitHub Action for OpenSSF Scorecard.- v1.0.5 go.mod
- v0.0.0-20170130214245-9ff6c6923cff go.sum
- v1.0.1-0.20171106142849-4c012f6dcd95 go.sum
- v1.0.1 go.sum
- v1.0.3 go.sum
- v1.0.5 go.sum
Size: 6.43 MB - Last synced: 1 day ago - Pushed: 1 day ago
zeromike/syft Fork of anchore/syft
CLI tool and library for generating a Software Bill of Materials from container images and filesystems- v1.0.5 go.mod
- v0.0.0-20170130214245-9ff6c6923cff go.sum
- v1.0.1-0.20171106142849-4c012f6dcd95 go.sum
- v1.0.1 go.sum
- v1.0.3 go.sum
- v1.0.5 go.sum
Size: 10.4 MB - Last synced: 11 months ago - Pushed: almost 2 years ago
aberja/argo Fork of argoproj/argo-workflows
Argo Workflows: Get stuff done with Kubernetes.- v1.0.5 go.mod
- v0.0.0-20170130214245-9ff6c6923cff go.sum
- v1.0.3 go.sum
- v1.0.5 go.sum
Size: 67.2 MB - Last synced: about 1 year ago - Pushed: about 1 year ago
krasish/test-infra Fork of kyma-project/test-infra
Test infrastructure for the Kyma project.- v0.0.0-20170130214245-9ff6c6923cff development/gcp/cloud-functions/getfailureinstancedetails/go.sum
- v1.0.1-0.20171106142849-4c012f6dcd95 development/gcp/cloud-functions/getfailureinstancedetails/go.sum
- v1.0.1 development/gcp/cloud-functions/getfailureinstancedetails/go.sum
- v1.0.2 development/gcp/cloud-functions/getfailureinstancedetails/go.sum
- v1.0.3 development/gcp/cloud-functions/getfailureinstancedetails/go.sum
- v1.0.5 development/gcp/cloud-functions/getfailureinstancedetails/go.sum
- v0.0.0-20170130214245-9ff6c6923cff development/kyma-ci-force-bot/ciforcebot/go.sum
- v1.0.1-0.20171106142849-4c012f6dcd95 development/kyma-ci-force-bot/ciforcebot/go.sum
- v1.0.1 development/kyma-ci-force-bot/ciforcebot/go.sum
- v1.0.2 development/kyma-ci-force-bot/ciforcebot/go.sum
- v1.0.3 development/kyma-ci-force-bot/ciforcebot/go.sum
- v1.0.5 development/kyma-ci-force-bot/ciforcebot/go.sum
- v0.0.0-20170130214245-9ff6c6923cff development/prow-installer/go.sum
- v1.0.5 development/prow-installer/go.sum
- v0.0.0-20170130214245-9ff6c6923cff development/test-log-collector/go.sum
- v1.0.1 development/test-log-collector/go.sum
- v1.0.3 development/test-log-collector/go.sum
- v1.0.5 development/test-log-collector/go.sum
- v1.0.5 go.mod
- v0.0.0-20170130214245-9ff6c6923cff go.sum
- v1.0.1-0.20171106142849-4c012f6dcd95 go.sum
- v1.0.1 go.sum
- v1.0.2 go.sum
- v1.0.3 go.sum
- v1.0.5 go.sum
Size: 15.3 MB - Last synced: about 1 year ago - Pushed: about 1 year ago
so61pi/examples
- v1.0.3 go/urlshortener/go.mod
- v1.0.3 go/urlshortener/go.sum
Size: 30.9 MB - Last synced: 2 months ago - Pushed: over 1 year ago
ffuf-glanz/terraform-provider-azuredevops Fork of feilfeilundfeil/terraform-provider-azuredevops
Terraform provider for Azure DevOps- v1.0.2 go.sum
- v1.0.3 go.sum
Size: 19.8 MB - Last synced: about 1 year ago - Pushed: about 1 year ago
appscode-cloud/installer
- v1.0.5 go.mod
- v1.0.5 go.sum
Size: 19.8 MB - Last synced: about 20 hours ago - Pushed: about 23 hours ago
philip-teleport/teleport Fork of gravitational/teleport
Certificate authority and access plane for SSH, Kubernetes, web apps, databases and desktops- v1.0.2 build.assets/tooling/go.sum
Size: 521 MB - Last synced: 8 days ago - Pushed: 11 days ago
luthersystems/sandbox
End-to-end "hello world" application on the Luther Platform.- v1.0.5 go.mod
- v1.0.1 go.sum
- v1.0.3 go.sum
- v1.0.5 go.sum
Size: 473 KB - Last synced: 6 days ago - Pushed: 6 days ago
spolti/kie-cloud-operator Fork of kiegroup/kie-cloud-operator
OCP Operator for KIE- v1.0.5 go.mod
- v0.0.0-20170130214245-9ff6c6923cff go.sum
- v1.0.1-0.20171106142849-4c012f6dcd95 go.sum
- v1.0.1 go.sum
- v1.0.3 go.sum
- v1.0.5 go.sum
Size: 100 MB - Last synced: 8 months ago - Pushed: 8 months ago
mpapenbr/iracelog-cli
Command line interface for iRacelog- v1.0.5 go.sum
Size: 177 KB - Last synced: 14 days ago - Pushed: 14 days ago
dhis2-sre/im-inspector
- v1.0.5 go.mod
- v1.0.5 go.sum
Size: 281 KB - Last synced: 5 days ago - Pushed: 6 days ago
cheqd/tendermint Fork of tendermint/tendermint
⟁ Tendermint Core (BFT Consensus) in Go- v1.0.1 go.sum
- v1.0.3 go.sum
- v1.0.5 go.sum
- v1.0.5 go.mod
Size: 142 MB - Last synced: 16 days ago - Pushed: about 1 year ago
alicefr/kubevirt Fork of kubevirt/kubevirt
Kubernetes Virtualization API and runtime in order to define and manage virtual machines.- v0.0.0-20170130214245-9ff6c6923cff cluster-up/cluster/kind-k8s-sriov-1.17.0/csrcreator/go.sum
- v1.0.5 cluster-up/cluster/kind-k8s-sriov-1.17.0/csrcreator/go.sum
- v1.0.5 go.mod
- v0.0.0-20170130214245-9ff6c6923cff go.sum
- v1.0.3 go.sum
- v1.0.5 go.sum
- v1.0.3 staging/src/kubevirt.io/client-go/examples/listvms/go.mod
- v1.0.1 staging/src/kubevirt.io/client-go/examples/listvms/go.sum
- v1.0.3 staging/src/kubevirt.io/client-go/examples/listvms/go.sum
- v1.0.5 staging/src/kubevirt.io/client-go/go.mod
- v0.0.0-20170130214245-9ff6c6923cff staging/src/kubevirt.io/client-go/go.sum
- v1.0.3 staging/src/kubevirt.io/client-go/go.sum
- v1.0.5 staging/src/kubevirt.io/client-go/go.sum
Size: 255 MB - Last synced: 8 days ago - Pushed: 8 days ago
murilo-bracero/raspstore
- v1.0.3 application/auth-service/go.sum
Size: 25.7 MB - Last synced: 4 days ago - Pushed: 6 months ago