diff --git a/cmd/fission-cli/app/app.go b/cmd/fission-cli/app/app.go index 8c914a1a..6a2d530f 100644 --- a/cmd/fission-cli/app/app.go +++ b/cmd/fission-cli/app/app.go @@ -61,7 +61,7 @@ func App() *cobra.Command { func(input cli.Input) error { console.Verbosity = input.Int(flagkey.Verbosity) - if input.IsSet(flagkey.ClientOnly) { + if input.IsSet(flagkey.ClientOnly) || input.IsSet(flagkey.PreCheckOnly) { // TODO: use fake rest client for offline spec generation cmd.SetClientset(client.MakeFakeClientset(nil)) } else {