diff options
Diffstat (limited to 'zip/cmd/main.go')
-rw-r--r-- | zip/cmd/main.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/zip/cmd/main.go b/zip/cmd/main.go index f49105a6..c4e1196d 100644 --- a/zip/cmd/main.go +++ b/zip/cmd/main.go @@ -186,6 +186,8 @@ func main() { emulateJar := flags.Bool("jar", false, "modify the resultant .zip to emulate the output of 'jar'") writeIfChanged := flags.Bool("write_if_changed", false, "only update resultant .zip if it has changed") + symlinks := flags.Bool("symlinks", true, "store symbolic links in zip instead of following them") + parallelJobs := flags.Int("parallel", runtime.NumCPU(), "number of parallel threads to use") cpuProfile := flags.String("cpuprofile", "", "write cpu profile to file") traceFile := flags.String("trace", "", "write trace to file") @@ -216,9 +218,10 @@ func main() { NumParallelJobs: *parallelJobs, NonDeflatedFiles: nonDeflatedFiles, WriteIfChanged: *writeIfChanged, + StoreSymlinks: *symlinks, }) if err != nil { - fmt.Fprintln(os.Stderr, err.Error()) + fmt.Fprintln(os.Stderr, "error:", err.Error()) os.Exit(1) } } |