- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 875 for Iflag (0.05 sec)
-
pkg/flag/flag.go
// limitations under the License. package flag import ( "os" "strings" "time" "github.com/spf13/pflag" ) // Flaggable defines the set of types that can be flags. // This is not exhaustive; add more as needed type Flaggable interface { string | bool | uint16 | time.Duration } var replacer = strings.NewReplacer("-", "_")
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Nov 01 04:37:36 UTC 2023 - 2.1K bytes - Viewed (0) -
src/cmd/go/internal/base/flag.go
// AddBuildFlagsNX adds the -n and -x build flags to the flag set. func AddBuildFlagsNX(flags *flag.FlagSet) { flags.BoolVar(&cfg.BuildN, "n", false, "") flags.BoolVar(&cfg.BuildX, "x", false, "") } // AddChdirFlag adds the -C flag to the flag set. func AddChdirFlag(flags *flag.FlagSet) { // The usage message is never printed, but it's used in chdir_test.go // to identify that the -C flag is from AddChdirFlag.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 06 19:23:42 UTC 2023 - 2.2K bytes - Viewed (0) -
src/cmd/go/internal/load/flag.go
) // A PerPackageFlag is a command-line flag implementation (a flag.Value) // that allows specifying different effective flags for different packages. // See 'go help build' for more details about per-package flags. type PerPackageFlag struct { raw string present bool values []ppfValue } // A ppfValue is a single <pattern>=<flags> per-package flag value. type ppfValue struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 19 20:20:43 UTC 2022 - 2.6K bytes - Viewed (0) -
src/flag/flag.go
// license that can be found in the LICENSE file. /* Package flag implements command-line flag parsing. # Usage Define flags using [flag.String], [Bool], [Int], etc. This declares an integer flag, -n, stored in the pointer nFlag, with type *int: import "flag" var nFlag = flag.Int("n", 1234, "help message for flag n") If you like, you can bind the flag to a variable using the Var() functions. var flagvar int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 18:38:24 UTC 2024 - 39.7K bytes - Viewed (0) -
src/cmd/go/internal/cmdflag/flag.go
// // ParseOne always returns either a non-nil Flag or a non-nil error, // and always consumes at least one argument (even on error). // // Unlike (*flag.FlagSet).Parse, ParseOne does not log its own errors. func ParseOne(fs *flag.FlagSet, args []string) (f *flag.Flag, remainingArgs []string, err error) { // This function is loosely derived from (*flag.FlagSet).parseOne. raw, args := args[0], args[1:] arg := raw
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 06 02:38:04 UTC 2022 - 3.6K bytes - Viewed (0) -
src/cmd/internal/objabi/flag.go
// expect form ssa/phase/flag // e.g. -d=ssa/generic_cse/time // _ in phase name also matches space phase := name[4:] flag := "debug" // default flag is debug if i := strings.Index(phase, "/"); i >= 0 { flag = phase[i+1:] phase = phase[:i] } err := f.debugSSA(phase, flag, val, valstring) if err != "" { log.Fatalf(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 10 23:08:09 UTC 2023 - 9.5K bytes - Viewed (0) -
releasenotes/notes/add-overwrite-flag.yaml
apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 51312 releaseNotes: - |
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jun 04 16:00:06 UTC 2024 - 255 bytes - Viewed (0) -
cmd/kube-apiserver/app/options/globalflags_test.go
wantedFlag := []string{"help"} pflag.CommandLine.AddGoFlagSet(flag.CommandLine) logs.AddFlags(pflag.CommandLine) normalizeFunc := nfs.GetNormalizeFunc() pflag.VisitAll(func(flag *pflag.Flag) { if !strings.Contains(flag.Name, "test.") { wantedFlag = append(wantedFlag, string(normalizeFunc(nfs, flag.Name))) } }) sort.Strings(wantedFlag) if !reflect.DeepEqual(wantedFlag, actualFlag) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Sep 30 11:46:49 UTC 2021 - 1.8K bytes - Viewed (0) -
cmd/kubelet/app/options/globalflags.go
func register(global *flag.FlagSet, local *pflag.FlagSet, globalName string) { if f := global.Lookup(globalName); f != nil { pflagFlag := pflag.PFlagFromGoFlag(f) pflagFlag.Name = normalize(pflagFlag.Name) local.AddFlag(pflagFlag) } else { panic(fmt.Sprintf("failed to find flag in global flagset (flag): %s", globalName)) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 01 13:03:53 UTC 2024 - 2.4K bytes - Viewed (0) -
src/cmd/nm/nm.go
os.Exit(2) } var ( sortOrder = flag.String("sort", "name", "") printSize = flag.Bool("size", false, "") printType = flag.Bool("type", false, "") filePrefix = false ) func init() { flag.Var(nflag(0), "n", "") // alias for -sort address } type nflag int func (nflag) IsBoolFlag() bool { return true } func (nflag) Set(value string) error { if value == "true" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 3.1K bytes - Viewed (0)