Add message asserting skip. Also return pointer to allow to edit Options

This commit is contained in:
Ettore Di Giacinto
2020-01-05 16:26:42 +01:00
parent d23e1dee78
commit d2abaa9cc1
3 changed files with 6 additions and 3 deletions

View File

@@ -35,6 +35,7 @@ var buildCmd = &cobra.Command{
Short: "build a package or a tree",
Long: `build packages or trees from luet tree definitions. Packages are in [category]/[name]-[version] form`,
PreRun: func(cmd *cobra.Command, args []string) {
viper.BindPFlag("clean", cmd.Flags().Lookup("clean"))
viper.BindPFlag("tree", cmd.Flags().Lookup("tree"))
viper.BindPFlag("destination", cmd.Flags().Lookup("destination"))
viper.BindPFlag("backend", cmd.Flags().Lookup("backend"))