diff --git a/govc/USAGE.md b/govc/USAGE.md index 7b1459f80..0f03033f8 100644 --- a/govc/USAGE.md +++ b/govc/USAGE.md @@ -4750,6 +4750,9 @@ Examples: govc namespace.service.create manifest.yaml Options: + -accept-eula=false Auto accept EULA + -spec-type=vsphere Type of Spec: only vsphere is supported right now + -trusted=false Define if this is a trusted provider ``` ## namespace.service.deactivate diff --git a/govc/namespace/service/create.go b/govc/namespace/service/create.go index 5ce68b965..f1de1b41a 100644 --- a/govc/namespace/service/create.go +++ b/govc/namespace/service/create.go @@ -44,10 +44,9 @@ func (cmd *create) Register(ctx context.Context, f *flag.FlagSet) { cmd.ClientFlag, ctx = flags.NewClientFlag(ctx) cmd.ClientFlag.Register(ctx, f) - flag.StringVar(&cmd.specType, "spec-type", "vsphere", "Type of Spec: only vsphere is supported right now") - flag.BoolVar(&cmd.trustedProvider, "trusted", false, "Define if this is a trusted provider") - flag.BoolVar(&cmd.acceptEULA, "accept-eula", false, "Auto accept EULA") - + f.StringVar(&cmd.specType, "spec-type", "vsphere", "Type of Spec: only vsphere is supported right now") + f.BoolVar(&cmd.trustedProvider, "trusted", false, "Define if this is a trusted provider") + f.BoolVar(&cmd.acceptEULA, "accept-eula", false, "Auto accept EULA") } func (cmd *create) Description() string {