File: argMap.go

package info (click to toggle)
golang-github-mgutz-minimist 0.0~git20151219.39eb8cf-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 104 kB
  • sloc: makefile: 3
file content (14 lines) | stat: -rw-r--r-- 373 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package minimist

// ArgMap is the result of parsing command-line arguments.
type ArgMap map[string]interface{}

// NonFlags are the rest of the args which were not parsed as flags before "--"
func (am ArgMap) NonFlags() []string {
	return am["_"].([]string)
}

// Unparsed are args that came after "--"
func (am ArgMap) Unparsed() []string {
	return am["--"].([]string)
}