proxy.golang.org : github.com/kevinburke/flagr
Package flagr rearranges flags so the options come first. This exists because Go won't parse flag arguments ("-o" or "--opt") that come after positional arguments: Sometimes this does the right thing - "go" takes different flags than "go build" for example and you don't want to parse "go" flags placed after "build". However sometimes you are at the end of the parse chain and anything that's left should be counted as an argument. This does the dumbest possible thing which is to rearrange the flags so any options come first. Anything after `--` is ignored. A single `-` counts as a positional (i.e. non-flag) argument.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/kevinburke/flagr
Keywords:
flag
, flags
, golang
, rearrangement
License: MIT
Latest release: about 8 years ago
First release: about 8 years ago
Namespace: github.com/kevinburke
Stars: 1 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: about 1 month ago