From c397d9720b303af3970847110f4bd3514f413d8c Mon Sep 17 00:00:00 2001 From: yaofangou Date: Sun, 15 Dec 2013 22:20:07 +0800 Subject: [PATCH] set exp default . --- pack.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pack.go b/pack.go index 305ef88..6c86853 100644 --- a/pack.go +++ b/pack.go @@ -45,7 +45,7 @@ compress an beego project -b build specify platform app. default true -o compressed file output dir. default use current path -f format. [ tar.gz / zip ]. default tar.gz. note: zip doesn't support embed symlink, skip it --exp path exclude prefix +-exp path exclude prefix. default: . -exs path exclude suffix. default: .go:.DS_Store:.tmp all path use : as separator -fs follow symlink. default false @@ -70,7 +70,7 @@ var ( func init() { fs := flag.NewFlagSet("pack", flag.ContinueOnError) fs.StringVar(&appPath, "p", "", "") - fs.StringVar(&excludeP, "exp", "", "") + fs.StringVar(&excludeP, "exp", ".", "") fs.StringVar(&excludeS, "exs", ".go:.DS_Store:.tmp", "") fs.StringVar(&outputP, "o", "", "") fs.BoolVar(&build, "b", true, "")