[feat] add pkgs, dockerfile, makefile
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user