Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for commandLineUsage (0.23 sec)

  1. src/flag/export_test.go

    // exit the program.
    func ResetForTesting(usage func()) {
    	CommandLine = NewFlagSet(os.Args[0], ContinueOnError)
    	CommandLine.SetOutput(io.Discard)
    	CommandLine.Usage = commandLineUsage
    	Usage = usage
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 07 09:29:14 UTC 2022
    - 653 bytes
    - Viewed (0)
  2. src/flag/flag.go

    	// Note: This is not CommandLine.Usage = Usage,
    	// because we want any eventual call to use any updated value of Usage,
    	// not the value it has when this line is run.
    	CommandLine.Usage = commandLineUsage
    }
    
    func commandLineUsage() {
    	Usage()
    }
    
    // NewFlagSet returns a new, empty flag set with the specified name and
    // error handling property. If the name is not empty, it will be printed
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:38:24 UTC 2024
    - 39.7K bytes
    - Viewed (0)
Back to top