[feat] add pkgs, dockerfile, makefile

This commit is contained in:
Jay
2020-08-16 01:21:27 +08:00
parent f92efa91fc
commit 77cc488d89
16 changed files with 482 additions and 5 deletions
+8
View File
@@ -1,6 +1,7 @@
package args
import (
"errors"
"os"
"git.trj.tw/golang/argparse"
@@ -26,3 +27,10 @@ func Parse() error {
return parser.Parse(os.Args)
}
func Get() *Args {
if a == nil {
panic(errors.New("arguments not init"))
}
return a
}