github.com/spf13/pflag
go
pkg:golang/github.com/spf13/pflag
3,674 Dependabot PRs
9 days ago
1,422 repositories
11 repositories
Recent PRs (filtered by: Patch PRs )
Bump the go-deps group with 3 updates
FDio/govpp #312
Bump the gomod group across 1 directory with 14 updates
stolostron/kubernetes-dependency-watches #81
chore(deps): Bump github.com/spf13/pflag from 1.0.6 to 1.0.10
Bump the go-patch group across 2 directories with 9 updates
flux-iac/tofu-controller #1605
Bump github.com/spf13/pflag from 1.0.5 to 1.0.10 in /lib
jeffrey9376/chainlink-testing-framework #494
chore(deps): bump github.com/spf13/pflag from 1.0.7 to 1.0.10
aka76bm/cli #10
Bump the gomod group with 5 updates
interlynk-io/sbommv #173
build(deps): Bump github.com/spf13/pflag from 1.0.5 to 1.0.10 in /x/upgrade
joshklop/monomer-cosmos-sdk #1416
build(deps): Bump github.com/spf13/pflag from 1.0.5 to 1.0.10 in /simapp
pixelplex/cosmos-sdk #269
chore: bump the all-go-mod group across 1 directory with 6 updates
in-toto/witness #662
Bump github.com/spf13/pflag from 1.0.9 to 1.0.10 in the go-dependencies group
build(deps): bump github.com/spf13/pflag from 1.0.9 to 1.0.10
AustinNoco/github-mcp-server #25
build(deps): bump the all group across 1 directory with 15 updates
kubernetes-sigs/cloud-provider-azure #9474
build(deps): bump the all group across 1 directory with 4 updates
jackfrancis/cloud-provider-azure #565
chore(deps): bump github.com/spf13/pflag from 1.0.6 to 1.0.10 in /cli
odigos-io/odigos #3539
build(deps): bump github.com/spf13/pflag from 1.0.9 to 1.0.10 in the dependencies group across 1 directory
NocturnalGlory/act #223
build(deps): bump github.com/spf13/pflag from 1.0.9 to 1.0.10 in the dependencies group across 1 directory
abitmore/act #232
build(deps): bump github.com/spf13/pflag from 1.0.9 to 1.0.10 in the dependencies group across 1 directory
Tiamat-Tech/act #234
chore(deps): bump the go-patch group with 6 updates
akuity/kargo #5080
Bump the go-dependencies group across 1 directory with 39 updates
jmorris0x0/terraform-provider-k8sconnect #22
Bump the security group with 8 updates
replicatedhq/local-volume-provider #90
:seedling: Bump the all-go-mod-patch-and-minor group across 1 directory with 5 updates
ionos-cloud/cluster-api-provider-ionoscloud #322
chore(deps): Bump the production-dependencies group across 1 directory with 27 updates
kubevirt/vm-console-proxy #378
build(deps): bump github.com/spf13/pflag from 1.0.9 to 1.0.10
apptainer/apptainer #3145
build(deps): bump github.com/spf13/pflag from 1.0.9 to 1.0.10
canonical/concierge #109
Bump the gomod group across 1 directory with 4 updates
tpantelis/submariner-addon #249
Bump github.com/spf13/pflag from 1.0.5 to 1.0.10
markcampv/xDSnap #12
Bump the go-dependencies group with 6 updates
ironcore-dev/ceph-provider #787
Bump the go-dependencies group with 7 updates
ironcore-dev/libvirt-provider #646
Bump the go-dependencies group with 4 updates
ironcore-dev/cloud-hypervisor-provider #121
Bump the dev-dependencies group across 1 directory with 5 updates
yandex/mysync #203
chore(deps): Bump the production-dependencies group across 1 directory with 25 updates
kubevirt/vm-console-proxy #377
Bump the go-dependencies group with 7 updates
ironcore-dev/gardener-extension-provider-ironcore-metal #246
chore(deps): bump the go-dependencies group with 5 updates
ironcore-dev/gardener-extension-provider-ironcore #811
chore(deps): bump github.com/spf13/pflag from 1.0.7 to 1.0.10
zarf-dev/zarf #4189
chore(deps): bump the go-dependencies group with 11 updates
chore(deps): bump the go-dependencies group with 12 updates
build(deps): bump the dependabot group with 12 updates
ohsu-comp-bio/funnel #1245
chore(deps): bump github.com/spf13/pflag from 1.0.9 to 1.0.10
berachain/beacon-kit #2934
build(deps): Bump the all-go group across 7 directories with 7 updates
evstack/ev-node #2666
gomod: bump the whole group across 4 directories with 2 updates
avamsi/climate #74
build(deps): bump the gomod group with 5 updates
Bump github.com/spf13/pflag from 1.0.9 to 1.0.10
ironcore-dev/machine-controller-manager-provider-ironcore #504
Bump github.com/spf13/pflag from 1.0.6-0.20201009195203-85dd5c8bc61c to 1.0.10
vernonm/unpoller #64
Bump github.com/spf13/pflag from 1.0.9 to 1.0.10
owenthereal/upterm #368
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
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 |