Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for rawArgs (0.2 sec)

  1. src/cmd/go/internal/script/engine.go

    			if usage.RegexpArgs != nil {
    				// First join rawArgs without expansion to pass to RegexpArgs.
    				rawArgs := make([]string, 0, len(cmd.rawArgs))
    				for _, frags := range cmd.rawArgs {
    					var b strings.Builder
    					for _, frag := range frags {
    						b.WriteString(frag.s)
    					}
    					rawArgs = append(rawArgs, b.String())
    				}
    				regexpArgs = usage.RegexpArgs(rawArgs...)
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 27 01:16:19 UTC 2023
    - 22.2K bytes
    - Viewed (0)
  2. src/cmd/go/internal/script/cmds.go

    }
    
    func (c *funcCmd) Usage() *CmdUsage { return &c.usage }
    
    // firstNonFlag returns a slice containing the index of the first argument in
    // rawArgs that is not a flag, or nil if all arguments are flags.
    func firstNonFlag(rawArgs ...string) []int {
    	for i, arg := range rawArgs {
    		if !strings.HasPrefix(arg, "-") {
    			return []int{i}
    		}
    		if arg == "--" {
    			return []int{i + 1}
    		}
    	}
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modget/get.go

    // implicit @upgrade. path@none is "downgrade away".
    func parseArgs(ctx context.Context, rawArgs []string) (dropToolchain bool, queries []*query) {
    	defer base.ExitIfErrors()
    
    	for _, arg := range search.CleanPatterns(rawArgs) {
    		q, err := newQuery(arg)
    		if err != nil {
    			base.Error(err)
    			continue
    		}
    
    		if q.version == "none" {
    			switch q.pattern {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 18:26:32 UTC 2024
    - 66.5K bytes
    - Viewed (0)
  4. src/cmd/go/internal/cmdflag/flag.go

    }
    
    // A NonFlagError indicates an argument that is not a syntactically-valid flag.
    type NonFlagError struct {
    	RawArg string
    }
    
    func (e NonFlagError) Error() string {
    	return fmt.Sprintf("not a flag: %q", e.RawArg)
    }
    
    // ParseOne sees if args[0] is present in the given flag set and if so,
    // sets its value and returns the flag along with the remaining (unused) arguments.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 06 02:38:04 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  5. src/cmd/go/internal/test/testflag.go

    			}
    
    			if nd.RawArg == "-args" || nd.RawArg == "--args" {
    				// -args or --args signals that everything that follows
    				// should be passed to the test.
    				explicitArgs = append(explicitArgs, remainingArgs...)
    				break
    			}
    
    			if firstUnknownFlag == "" {
    				firstUnknownFlag = nd.RawArg
    			}
    
    			explicitArgs = append(explicitArgs, nd.RawArg)
    			args = remainingArgs
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 19:25:24 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  6. istioctl/pkg/tag/tag.go

    			Namespaces: tagNamespaces,
    		}
    		key := uniqTag{
    			revision: tagRevision,
    			tag:      tagName,
    		}
    		rawTags[key] = tagDesc
    	}
    	for k := range rawTags {
    		if k.tag != "" {
    			delete(rawTags, uniqTag{revision: k.revision})
    		}
    	}
    	tags := slices.SortFunc(maps.Values(rawTags), func(a, b tagDescription) int {
    		if r := cmp.Compare(a.Revision, b.Revision); r != 0 {
    			return r
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 08:32:06 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  7. src/internal/trace/traceviewer/static/trace_viewer_full.html

    return arg;},this);return sig;},_parseArg:function(rawArg){var arg=rawArg.trim().replace(/,/g,',').replace(/\\(.)/g,'$1');var a={name:arg};var fc=arg[0];if(fc==='-'){fc=arg[1];}
    if(fc>='0'&&fc<='9'){fc='#';}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 20:45:06 UTC 2023
    - 2.5M bytes
    - Viewed (0)
Back to top