github.com/spf13/pflag
go
pkg:golang/github.com/spf13/pflag
3,676 Dependabot PRs
4 days ago
1,423 repositories
9 repositories
Recent PRs (filtered by: Patch PRs )
build(deps): bump github.com/spf13/pflag from 1.0.9 to 1.0.10
chore(deps): bump the gomod group with 4 updates
ustclug/Yuki #142
build(deps): bump the dependencies group with 20 updates
elastic/apm-server #18608
build(deps): bump github.com/spf13/pflag from 1.0.9 to 1.0.10
etcd-io/etcd #20672
Bump the go-dependencies group with 3 updates
skpr/trivy-operator-report #13
build(deps): bump github.com/spf13/pflag from 1.0.7 to 1.0.10 in /ganesha-config-reload
NicolasT/contained-ganesha #208
Bump github.com/spf13/pflag from 1.0.5 to 1.0.10
sneak-dev/opentelemetry-collector #8
deps(deps): bump github.com/spf13/pflag from 1.0.9 to 1.0.10 in the go-dependencies group
arenzana/usfmp #16
chore(deps): bump the minor-and-patch group across 1 directory with 32 updates
dependabot(deps): bump github.com/spf13/pflag from 1.0.9 to 1.0.10
kubernetes-sigs/cluster-api-provider-azure #5872
:seedling:(deps): Bump the all-go-mod-patch-and-minor group across 2 directories with 11 updates
Mirantis/cluster-api-provider-openstack #19
chore(deps): bump github.com/spf13/pflag from 1.0.7 to 1.0.10
Bonial-International-GmbH/spotinst-metrics-exporter #97
chore(deps): bump the dependencies group with 5 updates
openfga/cli #576
chore(deps): bump the go-dependencies group with 15 updates
:seedling:(deps): Bump the all-go-mod-patch-and-minor group across 2 directories with 12 updates
Mirantis/cluster-api-provider-openstack #18
:seedling:(deps): Bump the all-go-mod-patch-and-minor group across 3 directories with 8 updates
Mirantis/cluster-api-provider-openstack #17
build(deps): bump the github-dependencies group with 5 updates
rook/rook #16486
:seedling:(deps): Bump the all-go-deps group with 4 updates
transparency-dev/armored-witness #382
chore(deps)(deps): bump github.com/spf13/pflag from 1.0.9 to 1.0.10 in the patch-updates group
M0Rf30/yap #126
chore(deps): bump the go-dependencies group with 15 updates
Bump github.com/spf13/pflag from 1.0.9 to 1.0.10
kubean-io/kubean #1639
chore(deps): bump the all group with 12 updates
charmbracelet/mods #611
chore(deps): bump the common group with 23 updates
aquasecurity/trivy #9482
Bump the go group with 5 updates
grafana/grafanactl #151
chore(deps): bump the minor-and-patch group across 1 directory with 4 updates
macrat/ayd #36
build(deps): bump the all-dependencies group with 2 updates
Bump the gomod group with 13 updates
stolostron/kubernetes-dependency-watches #80
Bump the gomod group across 1 directory with 16 updates
stolostron/kubernetes-dependency-watches #78
build(deps): Bump the all-go-mod-patch-and-minor group across 1 directory with 7 updates
Bump github.com/spf13/pflag from 1.0.7 to 1.0.10
knative/pkg #3260
Bump the gomod group across 1 directory with 3 updates
sigstore/gitsign #715
chore(deps): bump the gomod group across 1 directory with 9 updates
chore(deps): bump the go-modules group with 5 updates
internetarchive/Zeno #478
chore(deps): bump the all group in /server with 7 updates
DaanV2/mechanus #172
Bump the go-patch group across 2 directories with 9 updates
flux-iac/tofu-controller #1604
Bump github.com/spf13/pflag from 1.0.6 to 1.0.10
CodeMonkeyCybersecurity/eos #34
chore(deps): Bump the gomod group across 1 directory with 16 updates
chore(deps): bump github.com/spf13/pflag from 1.0.9 to 1.0.10
ironcore-dev/gardener-extension-provider-ironcore #805
[Go]: Bump the go group across 24 directories with 9 updates
build(go): bump github.com/spf13/pflag from 1.0.5 to 1.0.10
jaconi-io/keycloak-operator #23
chore(deps): bump the common group with 22 updates
aiflash/trivy #353
Bump the go-deps group across 1 directory with 3 updates
fluxcd/helm-controller #1299
deps(deps): bump the minor-and-patch group with 9 updates
build(deps): Bump github.com/spf13/pflag from 1.0.5 to 1.0.10 in /x/upgrade
pixelplex/cosmos-sdk #255
Bump github.com/spf13/pflag from 1.0.7 to 1.0.10
grafana/grafana #111062
Bump the all group across 1 directory with 13 updates
sigstore/fulcio #2149
:seedling: Bump the all-go-mod-patch-and-minor group with 2 updates
kubernetes-sigs/controller-tools #1284
chore: bump the all-go-mod group across 1 directory with 5 updates
in-toto/witness #659
Package Details
| Name: | github.com/spf13/pflag |
| Ecosystem: | go |
| PURL Type: | golang |
| Package URL: | pkg:golang/github.com/spf13/pflag |
| JSON API: | View JSON |
Package Information
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.
| Repository: | https://github.com/spf13/pflag |
| Homepage: | https://github.com/spf13/pflag |
| Latest Release: |
v1.0.6
over 1 year ago |
| Dependent Repos: | 140,663 |
| Dependent Packages: | 57,644 |
| Ranking: | Top 0.0047% by dependent repos Top 0.0017% by dependent pkgs |