Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 26 for CountFlags (0.19 sec)

  1. src/cmd/go/main.go

    	toolchain.Select()
    
    	telemetry.StartWithUpload() // Run the upload process. Opening the counter file is idempotent.
    	flag.Usage = base.Usage
    	flag.Parse()
    	telemetry.Inc("go/invocations")
    	telemetry.CountFlags("go/flag:", *flag.CommandLine)
    
    	args := flag.Args()
    	if len(args) < 1 {
    		base.Usage()
    	}
    
    	cfg.CmdName = args[0] // for error messages
    	if args[0] == "help" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:09:11 UTC 2024
    - 10K bytes
    - Viewed (0)
  2. src/cmd/fix/main.go

    		fmt.Fprintf(os.Stderr, "\t%s\n", desc)
    	}
    	os.Exit(2)
    }
    
    func main() {
    	telemetry.Start()
    	flag.Usage = usage
    	flag.Parse()
    	telemetry.Inc("fix/invocations")
    	telemetry.CountFlags("fix/flag:", *flag.CommandLine)
    
    	if !version.IsValid(*goVersion) {
    		report(fmt.Errorf("invalid -go=%s", *goVersion))
    		os.Exit(exitCode)
    	}
    
    	sort.Sort(byDate(fixes))
    
    	if *allowedRewrites != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. src/cmd/test2json/main.go

    func ignoreSignals() {
    	signal.Ignore(signalsToIgnore...)
    }
    
    func main() {
    	telemetry.Start()
    
    	flag.Usage = usage
    	flag.Parse()
    	telemetry.Inc("test2json/invocations")
    	telemetry.CountFlags("test2json/flag:", *flag.CommandLine)
    
    	var mode test2json.Mode
    	if *flagT {
    		mode |= test2json.Timestamp
    	}
    	c := test2json.NewConverter(os.Stdout, *flagP, mode)
    	defer c.Close()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  4. src/cmd/pprof/pprof.go

    func main() {
    	telemetry.Start()
    	telemetry.Inc("pprof/invocations")
    	options := &driver.Options{
    		Fetch: new(fetcher),
    		Obj:   new(objTool),
    		UI:    newUI(),
    	}
    	err := driver.PProf(options)
    	telemetry.CountFlags("pprof/flag:", *flag.CommandLine) // pprof will use the flag package as its default
    	if err != nil {
    		fmt.Fprintf(os.Stderr, "%v\n", err)
    		os.Exit(2)
    	}
    }
    
    type fetcher struct {
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  5. src/cmd/trace/main.go

    	traceFile     string
    )
    
    func main() {
    	telemetry.Start()
    	flag.Usage = func() {
    		fmt.Fprint(os.Stderr, usageMessage)
    		os.Exit(2)
    	}
    	flag.Parse()
    	telemetry.Inc("trace/invocations")
    	telemetry.CountFlags("trace/flag:", *flag.CommandLine)
    
    	// Go 1.7 traces embed symbol info and does not require the binary.
    	// But we optionally accept binary as first arg for Go 1.5 traces.
    	switch flag.NArg() {
    	case 1:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  6. src/cmd/distpack/pack.go

    	goarch     string
    )
    
    func main() {
    	log.SetPrefix("distpack: ")
    	log.SetFlags(0)
    	telemetry.Start()
    	flag.Usage = usage
    	flag.Parse()
    	telemetry.Inc("distpack/invocations")
    	telemetry.CountFlags("distpack/flag:", *flag.CommandLine)
    	if flag.NArg() != 0 {
    		usage()
    	}
    
    	// Load context.
    	goroot = runtime.GOROOT()
    	if goroot == "" {
    		log.Fatalf("missing $GOROOT")
    	}
    	gohostos = runtime.GOOS
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  7. src/cmd/doc/main.go

    	flagSet.BoolVar(&showSrc, "src", false, "show source code for symbol")
    	flagSet.BoolVar(&short, "short", false, "one-line representation for each symbol")
    	flagSet.Parse(args)
    	telemetry.Inc("doc/invocations")
    	telemetry.CountFlags("doc/flag:", *flag.CommandLine)
    	if chdir != "" {
    		if err := os.Chdir(chdir); err != nil {
    			return err
    		}
    	}
    	var paths []string
    	var symbol, method string
    	// Loop until something is printed.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  8. src/cmd/gofmt/gofmt.go

    	gofmtMain(s)
    	os.Exit(s.GetExitCode())
    }
    
    func gofmtMain(s *sequencer) {
    	telemetry.Start()
    	flag.Usage = usage
    	flag.Parse()
    	telemetry.Inc("gofmt/invocations")
    	telemetry.CountFlags("gofmt/flag:", *flag.CommandLine)
    
    	if *cpuprofile != "" {
    		fdSem <- true
    		f, err := os.Create(*cpuprofile)
    		if err != nil {
    			s.AddReport(fmt.Errorf("creating cpu profile: %s", err))
    			return
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/main.go

    	objabi.Flagcount("v", "print link trace", &ctxt.Debugvlog)
    	objabi.Flagfn1("importcfg", "read import configuration from `file`", ctxt.readImportCfg)
    
    	objabi.Flagparse(usage)
    	telemetry.CountFlags("link/flag:", *flag.CommandLine)
    
    	if ctxt.Debugvlog > 0 {
    		// dump symbol info on crash
    		defer func() { ctxt.loader.Dump() }()
    	}
    	if ctxt.Debugvlog > 1 {
    		// dump symbol info on error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:59:50 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  10. src/cmd/cover/cover.go

    	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.
    	if flag.NFlag() == 0 && flag.NArg() == 0 {
    		flag.Usage()
    	}
    
    	err := parseFlags()
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 34.5K bytes
    - Viewed (0)
Back to top