fix flag parsing

This commit is contained in:
A.Unger
2021-03-04 14:33:16 +01:00
parent 96521d23a9
commit e8b1665f63
12 changed files with 78 additions and 66 deletions
-3
View File
@@ -8,7 +8,6 @@ import (
"github.com/micro/cli/v2"
"github.com/owncloud/ocis/ocis-pkg/log"
"github.com/owncloud/ocis/ocs/pkg/config"
"github.com/owncloud/ocis/ocs/pkg/flagset"
"github.com/owncloud/ocis/ocs/pkg/version"
"github.com/spf13/viper"
)
@@ -28,8 +27,6 @@ func Execute(cfg *config.Config) error {
},
},
Flags: flagset.RootWithConfig(cfg),
Before: func(c *cli.Context) error {
cfg.Service.Version = version.String
return nil