- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for addVersionFlag (0.21 sec)
-
src/cmd/vendor/golang.org/x/tools/go/analysis/internal/analysisflags/flags.go
log.Fatal(err) } os.Stdout.Write(data) } // addVersionFlag registers a -V flag that, if set, // prints the executable version and exits 0. // // If the -V flag already exists — for example, because it was already // registered by a call to cmd/internal/objabi.AddVersionFlag — then // addVersionFlag does nothing. func addVersionFlag() { if flag.Lookup("V") == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 19:00:13 UTC 2024 - 12.1K bytes - Viewed (0) -
src/cmd/preprofile/main.go
defer out.Close() } w := bufio.NewWriter(out) if _, err := d.WriteTo(w); err != nil { return fmt.Errorf("error writing output file: %w", err) } return nil } func main() { objabi.AddVersionFlag() log.SetFlags(0) log.SetPrefix("preprofile: ") telemetry.Start() flag.Usage = usage flag.Parse() telemetry.Inc("preprofile/invocations")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 1.9K bytes - Viewed (0) -
src/cmd/asm/internal/flags/flags.go
flag.Var(&I, "I", "include directory; can be set multiple times") flag.BoolVar(&DebugV, "v", false, "print debug output") flag.Var(objabi.NewDebugFlag(&DebugFlags, nil), "d", "enable debugging settings; try -d help") objabi.AddVersionFlag() // -V objabi.Flagcount("S", "print assembly and machine code", &PrintOut) } // MultiFlag allows setting a value multiple times to collect a list, as in -I=dir1 -I=dir2. type MultiFlag []string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 19:18:23 UTC 2023 - 2.8K bytes - Viewed (0) -
src/cmd/vet/main.go
"golang.org/x/tools/go/analysis/passes/unreachable" "golang.org/x/tools/go/analysis/passes/unsafeptr" "golang.org/x/tools/go/analysis/passes/unusedresult" ) func main() { telemetry.Start() objabi.AddVersionFlag() telemetry.Inc("vet/invocations") unitchecker.Main( appends.Analyzer, asmdecl.Analyzer, assign.Analyzer, atomic.Analyzer, bools.Analyzer, buildtag.Analyzer, cgocall.Analyzer,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 2.9K bytes - Viewed (0) -
src/cmd/internal/objabi/flag.go
args[i] = DecodeArg(arg) } out = append(out, expandArgs(args)...) } else if out != nil { out = append(out, s) } } if out == nil { return in } return } func AddVersionFlag() { flag.Var(versionFlag{}, "V", "print version and exit") } var buildID string // filled in by linker type versionFlag struct{} func (versionFlag) IsBoolFlag() bool { return true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 10 23:08:09 UTC 2023 - 9.5K bytes - Viewed (0) -
src/cmd/link/internal/ld/main.go
objabi.Flagfn1("L", "add specified `directory` to library path", func(a string) { Lflag(ctxt, a) }) objabi.AddVersionFlag() // -V objabi.Flagfn1("X", "add string value `definition` of the form importpath.name=value", func(s string) { addstrdata1(ctxt, s) }) objabi.Flagcount("v", "print link trace", &ctxt.Debugvlog)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 16:59:50 UTC 2024 - 16.6K bytes - Viewed (0) -
src/cmd/cover/cover.go
cgran coverage.CounterGranularity ) const ( atomicPackagePath = "sync/atomic" atomicPackageName = "_cover_atomic_" ) func main() { telemetry.Start() objabi.AddVersionFlag() flag.Usage = usage objabi.Flagparse(usage) telemetry.Inc("cover/invocations") telemetry.CountFlags("cover/flag:", *flag.CommandLine) // Usage information when no arguments.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 34.5K bytes - Viewed (0)