Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for bool_flag (0.14 sec)

  1. src/flag/flag_test.go

    	if err := f.Parse(args); err != nil {
    		t.Fatal(err)
    	}
    	if !f.Parsed() {
    		t.Error("f.Parse() = false after Parse")
    	}
    	if *boolFlag != true {
    		t.Error("bool flag should be true, is ", *boolFlag)
    	}
    	if *bool2Flag != true {
    		t.Error("bool2 flag should be true, is ", *bool2Flag)
    	}
    	if *intFlag != 22 {
    		t.Error("int flag should be 22, is ", *intFlag)
    	}
    	if *int64Flag != 0x23 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:38:24 UTC 2024
    - 22K bytes
    - Viewed (0)
  2. docs/debugging/xl-meta/main.go

    	app.HideHelpCommand = true
    	app.Flags = []cli.Flag{
    		cli.BoolFlag{
    			Usage:  "print each file as a separate line without formatting",
    			Name:   "ndjson",
    			Hidden: true,
    		},
    		cli.BoolFlag{
    			Usage: "display inline data keys and sizes",
    			Name:  "data",
    		},
    		cli.BoolFlag{
    			Usage: "export inline data",
    			Name:  "export",
    		},
    		cli.BoolFlag{
    			Usage: "combine inline data",
    			Name:  "combine",
    		},
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 31 14:49:23 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/internal/analysisflags/flags.go

    	setTrue
    	setFalse
    )
    
    func triStateFlag(name string, value triState, usage string) *triState {
    	flag.Var(&value, name, usage)
    	return &value
    }
    
    // triState implements flag.Value, flag.Getter, and flag.boolFlag.
    // They work like boolean flags: we can say vet -printf as well as vet -printf=true
    func (ts *triState) Get() interface{} {
    	return *ts == setTrue
    }
    
    func (ts triState) isTrue() bool {
    	return ts == setTrue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  4. src/flag/flag.go

    func (b *boolValue) IsBoolFlag() bool { return true }
    
    // optional interface to indicate boolean flags that can be
    // supplied without "=value" text
    type boolFlag interface {
    	Value
    	IsBoolFlag() bool
    }
    
    // -- int Value
    type intValue int
    
    func newIntValue(val int, p *int) *intValue {
    	*p = val
    	return (*intValue)(p)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:38:24 UTC 2024
    - 39.7K bytes
    - Viewed (0)
  5. cmd/server-main.go

    	cli.IntFlag{
    		Name:   "log-size",
    		Usage:  "specify the maximum server log file size in bytes before its rotated",
    		Value:  10 * humanize.MiByte,
    		EnvVar: "MINIO_LOG_SIZE",
    		Hidden: true,
    	},
    	cli.BoolFlag{
    		Name:   "log-compress",
    		Usage:  "specify if we want the rotated logs to be gzip compressed or not",
    		EnvVar: "MINIO_LOG_COMPRESS",
    		Hidden: true,
    	},
    	cli.StringFlag{
    		Name:   "log-prefix",
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 04 15:12:57 UTC 2024
    - 34.5K bytes
    - Viewed (0)
Back to top