Lines Matching refs:flags
124 flags := flag.NewFlagSet("flags", flag.ExitOnError)
125 flags.Usage = func() {
127 flags.PrintDefaults()
131 out := flags.String("o", "", "file to write zip file to")
132 manifest := flags.String("m", "", "input jar manifest file name")
133 directories := flags.Bool("d", false, "include directories in zip")
134 compLevel := flags.Int("L", 5, "deflate compression level (0-9)")
135 emulateJar := flags.Bool("jar", false, "modify the resultant .zip to emulate the output of 'jar'")
136 …writeIfChanged := flags.Bool("write_if_changed", false, "only update resultant .zip if it has chan…
137 …ignoreMissingFiles := flags.Bool("ignore_missing_files", false, "continue if a requested file does…
138 symlinks := flags.Bool("symlinks", true, "store symbolic links in zip instead of following them")
139 …srcJar := flags.Bool("srcjar", false, "move .java files to locations that match their package stat…
141 parallelJobs := flags.Int("parallel", runtime.NumCPU(), "number of parallel threads to use")
142 cpuProfile := flags.String("cpuprofile", "", "write cpu profile to file")
143 traceFile := flags.String("trace", "", "write trace to file")
145 flags.Var(&rootPrefix{}, "P", "path prefix within the zip at which to place files")
146 flags.Var(&listFiles{}, "l", "file containing list of .class files")
147 flags.Var(&dir{}, "D", "directory to include in zip")
148 flags.Var(&file{}, "f", "file to include in zip")
149 flags.Var(&nonDeflatedFiles, "s", "file path to be stored within the zip without compression")
150 …flags.Var(&relativeRoot{}, "C", "path to use as relative root of files in following -f, -l, or -D …
151 flags.Var(&junkPaths{}, "j", "junk paths, zip files without directory names")
153 flags.Parse(expandedArgs[1:])
155 if flags.NArg() > 0 {
156 fmt.Fprintf(os.Stderr, "unexpected arguments %s\n", strings.Join(flags.Args(), " "))
157 flags.Usage()