repoDescriptor->repoInfo

This commit is contained in:
zach rice committed 2019-03-28 08:06:38 -05:00
1 parent e79ffc6ae8
commit c2143c5843
9 files changed
+23 -28

No files matched your search

+3 -4
View File
@@ -56,7 +56,7 @@ type Options struct {
SampleConfig bool `long:"sample-config" description:"prints a sample config file"`
}
func setupOpts() (*Options, error) {
func ParseOpts() (*Options) {
var opts Options
parser := flags.NewParser(&opts, flags.Default)
_, err := parser.Parse()
@@ -86,10 +86,9 @@ func setupOpts() (*Options, error) {
err = opts.guard()
if err != nil {
return nil, err
log.Fatal(err)
}
return &opts, err
return &opts
}
// optsGuard prevents invalid options