Honor help-only input checks before starting features
This commit is contained in:
@@ -150,7 +150,13 @@ func newConfigOperationCommand[I, S any](prepared *preparedSuite[I, S], operatio
|
||||
if input == nil {
|
||||
return fmt.Errorf("configuration input must not be nil")
|
||||
}
|
||||
return prepareConfigOperation(prepared, operation, input)
|
||||
if err := prepareConfigOperation(prepared, operation, input); err != nil {
|
||||
return err
|
||||
}
|
||||
if input.plan.help {
|
||||
return commandkit.ErrHelpRequested
|
||||
}
|
||||
return nil
|
||||
},
|
||||
Run: func(invocation commandkit.Invocation, input *configCommandInput[I, S]) commandkit.Outcome {
|
||||
return runConfigOperation(invocation, operation, input)
|
||||
|
||||
Reference in New Issue
Block a user