Codebase list golang-github-gobuffalo-packr / a77a02a7-acb7-4661-b63e-63f13af9648b/main v2 / packr2 / cmd / pack.go
a77a02a7-acb7-4661-b63e-63f13af9648b/main

Tree @a77a02a7-acb7-4661-b63e-63f13af9648b/main (Download .tar.gz)

pack.go @a77a02a7-acb7-4661-b63e-63f13af9648b/mainraw · history · blame

package cmd

func parseArgs(args []string) []string {
	var cargs []string
	for _, a := range args {
		if a == "--legacy" {
			globalOptions.Legacy = true
			continue
		}
		if a == "--verbose" {
			globalOptions.Verbose = true
			continue
		}
		if a == "--silent" {
			globalOptions.Silent = true
			continue
		}
		if a == "--ignore-imports" {
			globalOptions.IgnoreImports = true
			continue
		}
		cargs = append(cargs, a)
	}
	return cargs
}