let command handle defaults

pull/38186/head
Daniel Schmidt 2 months ago
parent 6b83486498
commit 5a9c0196d9
No known key found for this signature in database
GPG Key ID: 377C3A4D62FBBBE2

@ -44,9 +44,7 @@ type Taint struct {
// the best effort interpretation of the arguments.
func ParseTaint(args []string) (*Taint, tfdiags.Diagnostics) {
var diags tfdiags.Diagnostics
taint := &Taint{
StateLock: true,
}
taint := &Taint{}
cmdFlags := defaultFlagSet("taint")
cmdFlags.BoolVar(&taint.AllowMissing, "allow-missing", false, "allow missing")

@ -44,9 +44,7 @@ type Untaint struct {
// the best effort interpretation of the arguments.
func ParseUntaint(args []string) (*Untaint, tfdiags.Diagnostics) {
var diags tfdiags.Diagnostics
untaint := &Untaint{
StateLock: true,
}
untaint := &Untaint{}
cmdFlags := defaultFlagSet("untaint")
cmdFlags.BoolVar(&untaint.AllowMissing, "allow-missing", false, "allow missing")

Loading…
Cancel
Save