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 )
build(deps): bump github.com/spf13/pflag from 1.0.6 to 1.0.10
build(deps): bump github.com/spf13/pflag from 1.0.7 to 1.0.10
MarcelRaschke/hugo #510
chore(deps): bump github.com/spf13/pflag from 1.0.9 to 1.0.10 in /cmd/monta
einride/monta-go #150
chore(deps): bump github.com/spf13/pflag from 1.0.7 to 1.0.10
argoproj-labs/argocd-image-updater #1262
build(deps): bump the non-majors group with 23 updates
traPtitech/NeoShowcase #1112
Bump github.com/spf13/pflag from 1.0.6 to 1.0.10
alexkinch/evans #25
chore(deps): Bump github.com/spf13/pflag from 1.0.7 to 1.0.10
build(deps): bump the dependencies group with 3 updates
open-policy-agent/regal #1705
chore(deps): bump github.com/spf13/pflag from 1.0.9 to 1.0.10 in /cli
Bump github.com/spf13/pflag from 1.0.9 to 1.0.10
TLINDEN/kleingebaeck #170
Bump the go-minor-and-patch-updates group with 7 updates
GoogleCloudPlatform/cluster-toolkit #4711
Bump github.com/spf13/pflag from 1.0.6 to 1.0.10
Bump the go-packages group with 16 updates
kokizzu/centrifugo #374
Bump the go-packages group with 15 updates
centrifugal/centrifugo #1048
⬆️ Bump github.com/spf13/pflag from 1.0.6 to 1.0.10
ikura-hamu/q-cli #75
build(action): bump github.com/spf13/pflag from 1.0.9 to 1.0.10
bridgewwater/gin-api-swagger-temple #56
build(deps): bump the go-mod group with 14 updates
authzed/zed #550
chore: Bump github.com/spf13/pflag from 1.0.9 to 1.0.10
sergelogvinov/node-labels-exporter #56
chore: bump github.com/spf13/pflag from 1.0.9 to 1.0.10
sergelogvinov/hybrid-csi-plugin #61
vendor(deps): bump github.com/spf13/pflag from 1.0.6 to 1.0.10
Bump github.com/spf13/pflag from 1.0.6 to 1.0.10
TLINDEN/gfn #22
chore(deps): bump the minor-updates group with 3 updates
chore(deps): bump github.com/spf13/pflag from 1.0.5 to 1.0.10
AnaisUrlichs/trivy #305
Bump the oc-mirror-v2-version-updates group in /v2 with 14 updates
openshift/oc-mirror #1281
Bump the gomod group with 4 updates
scylladb/local-csi-driver #107
vendor(deps): bump github.com/spf13/pflag from 1.0.7 to 1.0.10
simplesurance/goordinator #147
Bump github.com/spf13/pflag from 1.0.5 to 1.0.10
bamcorp2019/aws-load-balancer-controller #13
chore(deps): bump github.com/spf13/pflag from 1.0.5 to 1.0.10
mr-karan/doggo #215
Chore(deps): Bump github.com/spf13/pflag from 1.0.6 to 1.0.10
axllent/sndmail #17
Bump github.com/spf13/pflag from 1.0.7 to 1.0.10
TLINDEN/rpnc #47
Bump the go-deps group with 3 updates
fluxcd/kustomize-controller #1526
Bump github.com/spf13/pflag from 1.0.6 to 1.0.10
Bump github.com/spf13/pflag from 1.0.9 to 1.0.10 in the dev-dependencies group
yandex/mysync #207
Bump the minor-update group across 1 directory with 2 updates
wjam/flac-check #29
build(deps): bump github.com/spf13/pflag from 1.0.5 to 1.0.10
build(deps): Bump github.com/spf13/pflag from 1.0.5 to 1.0.10
Bump github.com/spf13/pflag from 1.0.5 to 1.0.10
xiaobo88michael/cosmos-sdk #1191
deps: bump github.com/spf13/pflag from 1.0.5 to 1.0.10
shubham-pathak-03/azure-container-networking #466
build(deps): bump github.com/spf13/pflag from 1.0.9 to 1.0.10
brunovlucena/github-mcp-plus #3
build(deps): Bump github.com/spf13/pflag from 1.0.5 to 1.0.10
allinbits/cosmos-sdk #2075
[release-1.17][gomod]: Bump github.com/spf13/pflag from 1.0.5 to 1.0.10
openshift-knative/kn-plugin-event #986
Bump github.com/spf13/pflag from 1.0.5 to 1.0.10 in /lib
smartcontractkit/chainlink-testing-framework #2164
Bump the all group across 1 directory with 14 updates
bobcallaway/fulcio #463
chore(deps): bump the all group across 1 directory with 12 updates
kubernetes-sigs/cluster-api-provider-gcp #1540
[release-1.16][gomod]: Bump github.com/spf13/pflag from 1.0.5 to 1.0.10
openshift-knative/kn-plugin-event #971
build(deps): Bump github.com/spf13/pflag from 1.0.5 to 1.0.10 in /x/upgrade
jatincr7/cosmos-sdk #2105
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 |